- file: bool fileExists
 - str: removed c++ string conversion
 - tracelog: added utf8 output for windows
This commit is contained in:
alessandrobason 2022-03-31 02:19:14 +01:00
parent bce93361b1
commit 915fd081f3
6 changed files with 23 additions and 10 deletions

View file

@ -6,6 +6,7 @@
#ifdef _WIN32
#pragma warning(disable:4996) // _CRT_SECURE_NO_WARNINGS.
#include "win32_slim.h"
#endif
#ifdef TLOG_VS
@ -75,6 +76,10 @@ void traceLogVaList(int level, const char *fmt, va_list args) {
vsnprintf(buffer + offset, sizeof(buffer) - offset, fmt, args);
#ifdef _WIN32
SetConsoleOutputCP(CP_UTF8);
#endif
#ifdef TLOG_VS
OutputDebugStringA(buffer);
if(use_newline) OutputDebugStringA("\n");