stdout error stuff

This commit is contained in:
momo5502 2016-03-10 21:35:00 +01:00
parent 2b41566727
commit 2d4a32d89d
2 changed files with 4 additions and 2 deletions

View File

@ -427,6 +427,8 @@ namespace Components
va_end(ap);
perror(buffer);
ExitProcess(1);
}
Console::Console()

View File

@ -128,7 +128,7 @@ namespace Components
if (type == Game::XAssetType::ASSET_TYPE_INVALID || type >= Game::XAssetType::ASSET_TYPE_COUNT)
{
Logger::Print("Error: Invalid asset type '%s'\n", typeName.data());
Logger::Error("Error: Invalid asset type '%s'\n", typeName.data());
return false;
}
@ -136,7 +136,7 @@ namespace Components
if (!assetHeader.data)
{
Logger::Print("Error: Missing asset '%s' of type '%s'\n", name.data(), Game::DB_GetXAssetTypeName(type));
Logger::Error("Error: Missing asset '%s' of type '%s'\n", name.data(), Game::DB_GetXAssetTypeName(type));
return false;
}