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