fix windows

This commit is contained in:
Nishi 2026-01-12 06:15:07 +09:00
commit f1def38e3d
Signed by: nishi
GPG key ID: 27EF69B208EB9343
4 changed files with 14 additions and 9 deletions

View file

@ -5,6 +5,15 @@ void GSLog(int level, const char* fmt, ...) {
FILE* out = stdout;
#ifdef _WIN32
fprintf(out, "[GearSrc|");
if(level == GSLogInfo) {
fprintf(out, "INFO ");
} else if(level == GSLogWarn) {
fprintf(out, "WARN ");
} else if(level == GSLogError) {
fprintf(out, "ERROR");
}
#else
fprintf(out, "[\x1b[mGearSrc\x1b[m|");