| 98 | } |
| 99 | |
| 100 | void WriteLine_VA(const utf8* format, va_list args) |
| 101 | { |
| 102 | char buffer[4096]; |
| 103 | std::vsnprintf(buffer, sizeof(buffer), format, args); |
| 104 | auto ctx = GetContext(); |
| 105 | if (ctx != nullptr) |
| 106 | ctx->WriteErrorLine(buffer); |
| 107 | else |
| 108 | std::printf("%s\n", buffer); |
| 109 | } |
| 110 | } // namespace Error |
| 111 | } // namespace OpenRCT2::Console |
no test coverage detected