mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-11 07:18:11 -05:00
feat: improve error messages when parsing an info string file fails
This commit is contained in:
@ -126,7 +126,7 @@ bool AssetLoaderPhysPreset::LoadFromRaw(
|
||||
InfoString infoString;
|
||||
if (!infoString.FromStream(ObjConstants::INFO_STRING_PREFIX_PHYS_PRESET, *file.m_stream))
|
||||
{
|
||||
std::cout << "Failed to read phys preset raw file: \"" << fileName << "\"\n";
|
||||
std::cerr << "Could not parse as info string file: \"" << fileName << "\"\n";
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -440,7 +440,7 @@ bool AssetLoaderWeapon::LoadFromRaw(
|
||||
InfoString infoString;
|
||||
if (!infoString.FromStream(ObjConstants::INFO_STRING_PREFIX_WEAPON, *file.m_stream))
|
||||
{
|
||||
std::cerr << "Failed to read weapon raw file: \"" << fileName << "\"\n";
|
||||
std::cerr << "Could not parse as info string file: \"" << fileName << "\"\n";
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user