mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-18 12:33:17 +01:00
Make Console::Error::WriteLine formattable
This commit is contained in:
@@ -91,10 +91,14 @@ namespace Console
|
||||
fputs(platform_get_new_line(), stderr);
|
||||
}
|
||||
|
||||
void WriteLine(const utf8 * str)
|
||||
void WriteLine(const utf8 * format, ...)
|
||||
{
|
||||
fputs(str, stderr);
|
||||
WriteLine();
|
||||
va_list args;
|
||||
|
||||
va_start(args, format);
|
||||
vfprintf(stdout, format, args);
|
||||
puts("");
|
||||
va_end(args);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user