Explorar el Código

debugger: console: Set console output codepage to UTF-8

This allows the console to display multi-byte encoded characters.
Morph hace 4 años
padre
commit
54c7af9902
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/yuzu/debugger/console.cpp

+ 1 - 0
src/yuzu/debugger/console.cpp

@@ -30,6 +30,7 @@ void ToggleConsole() {
             freopen_s(&temp, "CONIN$", "r", stdin);
             freopen_s(&temp, "CONOUT$", "w", stdout);
             freopen_s(&temp, "CONOUT$", "w", stderr);
+            SetConsoleOutputCP(65001);
             SetColorConsoleBackendEnabled(true);
         }
     } else {