now game launchable on windows

This commit is contained in:
Issac332 2026-05-27 16:21:43 +03:00
parent e519c5a9ef
commit b84ede2495
2 changed files with 6 additions and 3 deletions

View file

@ -110,7 +110,7 @@ void loadLanguageMetadata() {
}
}
fclose(fontsFile);
//fclose(fontsFile);
}
@ -143,7 +143,7 @@ void loadLanguageMetadata() {
}
}
fclose(fontSizesFile);
//fclose(fontSizesFile);
}
}

View file

@ -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