fix windows non-ascii char (#392)

This commit is contained in:
coco875 2025-06-28 01:27:46 +00:00 committed by GitHub
parent 87c07bcf6e
commit ce90b30b88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -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"
@ -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();