From b84ede2495be0989443e74e3b0241537b208fa49 Mon Sep 17 00:00:00 2001 From: Issac332 <119879937+Issac8658@users.noreply.github.com> Date: Wed, 27 May 2026 16:21:43 +0300 Subject: [PATCH] now game launchable on windows --- src/i18n.cpp | 4 ++-- src/main.cpp | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/i18n.cpp b/src/i18n.cpp index af8b528..778a8c9 100644 --- a/src/i18n.cpp +++ b/src/i18n.cpp @@ -110,7 +110,7 @@ void loadLanguageMetadata() { } } - fclose(fontsFile); + //fclose(fontsFile); } @@ -143,7 +143,7 @@ void loadLanguageMetadata() { } } - fclose(fontSizesFile); + //fclose(fontSizesFile); } } diff --git a/src/main.cpp b/src/main.cpp index 9182d0a..717fcbf 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -272,7 +272,10 @@ int main(int argc, char *argv[]){ conf.read(argc, argv); #if defined WIN32 if(conf.Windows_AllocConsole == true){ - + AllocConsole(); + freopen("CONOUT$", "w", stdout); + freopen("CONOUT$", "w", stderr); + freopen("CONIN$", "r", stdin); } #endif