diff options
| author | coco875 <59367621+coco875@users.noreply.github.com> | 2025-06-28 01:27:46 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-27 19:27:46 -0600 |
| commit | ce90b30b88cbe4cba5b0ead09bd25bcfe8246520 (patch) | |
| tree | 869141c1dd747d472c50c163689eca7e8ebdb650 /src/port/Game.cpp | |
| parent | 87c07bcf6ef829255d66b835c04a6e302bf87212 (diff) | |
fix windows non-ascii char (#392)
Diffstat (limited to 'src/port/Game.cpp')
| -rw-r--r-- | src/port/Game.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/port/Game.cpp b/src/port/Game.cpp index 47c82088b..5a529e9bf 100644 --- a/src/port/Game.cpp +++ b/src/port/Game.cpp @@ -49,6 +49,10 @@ #include "engine/editor/EditorMath.h" #include "engine/editor/SceneManager.h" +#ifdef _WIN32 +#include <locale.h> +#endif + extern "C" { #include "main.h" #include "audio/load.h" @@ -794,6 +798,10 @@ extern "C" int main(int argc, char* argv[]) { #endif +#ifdef _WIN32 + // Allow non-ascii characters for Windows + setlocale(LC_ALL, ".UTF8"); +#endif // load_wasm(); GameEngine::Create(); audio_init(); |
