Support utf8 codepoint in win32 console
This commit is contained in:
@@ -65,5 +65,5 @@ extern "C" __declspec(dllexport) void __cdecl GameShutdown()
|
||||
|
||||
extern "C" __declspec(dllexport) void __cdecl GameUpdate(float deltaTime)
|
||||
{
|
||||
printf("Updating game...\n");
|
||||
//printf("Updating game...\n");
|
||||
}
|
||||
|
||||
@@ -7,8 +7,12 @@
|
||||
#include <cstdarg>
|
||||
|
||||
// Begin Todo JULIET debug output
|
||||
#include <cinttypes>
|
||||
|
||||
#ifdef JULIET_WIN32
|
||||
#include <Core/HAL/Win32.h>
|
||||
#include <debugapi.h>
|
||||
#endif
|
||||
// End Todo
|
||||
|
||||
namespace Juliet
|
||||
@@ -62,12 +66,19 @@ namespace Juliet
|
||||
void LogManager::OutputLog(Entry& entry)
|
||||
{
|
||||
// TODO Juliet Output io for each platform
|
||||
#ifdef JULIET_WIN32
|
||||
OutputDebugStringA((entry.Value + "\n").c_str());
|
||||
#endif
|
||||
printf("%s", (entry.Value + "\n").c_str());
|
||||
}
|
||||
|
||||
void InitializeLogManager()
|
||||
{
|
||||
#ifdef JULIET_WIN32
|
||||
SetConsoleOutputCP(CP_UTF8);
|
||||
SetConsoleCP(CP_UTF8);
|
||||
#endif
|
||||
|
||||
LogManagerSingleton.Init();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user