From e519c5a9ef90ff03ad0d797e24bfb78e6f58d55b Mon Sep 17 00:00:00 2001 From: DepressedTWM Date: Wed, 27 May 2026 17:12:56 +0400 Subject: [PATCH] :( --- src/main.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 36890a0..9182d0a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -218,15 +218,6 @@ static void setGamePathInRegistry() { } int main(int argc, char *argv[]){ char msg[512]; - /* now we load the config */ - Config conf; - conf.read(argc, argv); - #if defined WIN32 - if(conf.Windows_AllocConsole == true){ - - } - #endif - loadLanguageMetadata(); //there will be a segfault on fclose if I don't move it here SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0"); @@ -276,6 +267,15 @@ int main(int argc, char *argv[]){ /* Initialize physfs here so that config can call PHYSFS_getPrefDir */ PHYSFS_init(argv[0]); + /* now we load the config */ + Config conf; + conf.read(argc, argv); + #if defined WIN32 + if(conf.Windows_AllocConsole == true){ + + } + #endif + if (!conf.gameFolder.empty()) if (chdir(conf.gameFolder.c_str()) != 0){ showInitError(std::string("Unable to switch into gameFolder ") + conf.gameFolder);