1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

Make Console::Error::WriteLine formattable

This commit is contained in:
Ted John
2016-07-09 15:02:05 +01:00
parent 8c2393f5c5
commit 3c64010fe1
9 changed files with 29 additions and 45 deletions

View File

@@ -68,8 +68,7 @@ public:
if (!String::IsNullOrEmpty(text))
{
Console::Error::WriteFormat("[%s] Warning: %s", _objectName, text);
Console::Error::WriteLine();
Console::Error::WriteLine("[%s] Warning: %s", _objectName, text);
}
}
@@ -79,8 +78,7 @@ public:
if (!String::IsNullOrEmpty(text))
{
Console::Error::WriteFormat("[%s] Error: %s", _objectName, text);
Console::Error::WriteLine();
Console::Error::WriteLine("[%s] Error: %s", _objectName, text);
}
}
};
@@ -154,8 +152,7 @@ namespace ObjectFactory
if (readContext.WasError())
{
Console::Error::WriteFormat("Error reading object: '%s'", path);
Console::Error::WriteLine();
Console::Error::WriteLine("Error reading object: '%s'", path);
delete result;
result = nullptr;