diff options
Diffstat (limited to 'core/logging.cpp')
-rw-r--r-- | core/logging.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/logging.cpp b/core/logging.cpp index 91cb0e8c..7ee7ff23 100644 --- a/core/logging.cpp +++ b/core/logging.cpp @@ -35,10 +35,9 @@ void al_print(LogLevel level, FILE *logfile, const char *fmt, ...) va_end(args2); va_end(args); - std::wstring wstr{utf8_to_wstr(str)}; if(gLogLevel >= level) { - fputws(wstr.c_str(), logfile); + fputs(str, logfile); fflush(logfile); } /* OutputDebugStringW has no 'level' property to distinguish between @@ -46,6 +45,7 @@ void al_print(LogLevel level, FILE *logfile, const char *fmt, ...) * non-Release builds. */ #ifndef NDEBUG + std::wstring wstr{utf8_to_wstr(str)}; OutputDebugStringW(wstr.c_str()); #endif } |