mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-08 12:16:17 -04:00
Make OSReport_Error less hideous to look at
This commit is contained in:
@@ -232,9 +232,14 @@ void OSReport_Error(const char* fmt, ...) {
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
OSReportForceEnableOn();
|
||||
#if TARGET_PC
|
||||
my_PutString("\x1B[31m[ERROR]\x1B[m ");
|
||||
OSVReport(fmt, args);
|
||||
#else
|
||||
my_PutString("\x1B[41;37m[ERROR]");
|
||||
OSVReport(fmt, args);
|
||||
my_PutString("\x1B[m");
|
||||
#endif
|
||||
OSReportForceEnableOff();
|
||||
fflush(stdout);
|
||||
va_end(args);
|
||||
|
||||
Reference in New Issue
Block a user