1
0
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:
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

@@ -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);
}
}
}