From ce90b30b88cbe4cba5b0ead09bd25bcfe8246520 Mon Sep 17 00:00:00 2001 From: coco875 <59367621+coco875@users.noreply.github.com> Date: Sat, 28 Jun 2025 01:27:46 +0000 Subject: fix windows non-ascii char (#392) --- src/port/Game.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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 +#endif + extern "C" { #include "main.h" #include "audio/load.h" @@ -793,6 +797,10 @@ extern "C" #endif int main(int argc, char* argv[]) { +#endif +#ifdef _WIN32 + // Allow non-ascii characters for Windows + setlocale(LC_ALL, ".UTF8"); #endif // load_wasm(); GameEngine::Create(); -- cgit v1.2.3