mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 11:33:03 +01:00
Apply review changes
- Print warning/error code in log message - Remove attribute from Object::SetSourceGame which has a FIXME comment already instead
This commit is contained in:
committed by
Michał Janiszewski
parent
204dd4439b
commit
8c1ed596ce
@@ -129,23 +129,23 @@ public:
|
||||
return {};
|
||||
}
|
||||
|
||||
void LogWarning([[maybe_unused]] uint32 code, const utf8* text) override
|
||||
void LogWarning(uint32 code, const utf8* text) override
|
||||
{
|
||||
_wasWarning = true;
|
||||
|
||||
if (!String::IsNullOrEmpty(text))
|
||||
{
|
||||
Console::Error::WriteLine("[%s] Warning: %s", _objectName.c_str(), text);
|
||||
Console::Error::WriteLine("[%s] Warning (%d): %s", _objectName.c_str(), code, text);
|
||||
}
|
||||
}
|
||||
|
||||
void LogError([[maybe_unused]] uint32 code, const utf8* text) override
|
||||
void LogError(uint32 code, const utf8* text) override
|
||||
{
|
||||
_wasError = true;
|
||||
|
||||
if (!String::IsNullOrEmpty(text))
|
||||
{
|
||||
Console::Error::WriteLine("[%s] Error: %s", _objectName.c_str(), text);
|
||||
Console::Error::WriteLine("[%s] Error (%d): %s", _objectName.c_str(), code, text);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user