[win32] Create logger earlier to fix segv

SplashScreen class uses LoadImageFromFile which calls GetLogger
pull/1250/head
Hleb Valoshka 2021-12-26 19:54:16 +02:00
parent 9385415788
commit a264433697
1 changed files with 1 additions and 1 deletions

View File

@ -3150,6 +3150,7 @@ int APIENTRY WinMain(HINSTANCE hInstance,
}
}
CreateLogger(verbosity);
// If a start directory was given on the command line, switch to it
// now.
if (startDirectory != "")
@ -3242,7 +3243,6 @@ int APIENTRY WinMain(HINSTANCE hInstance,
}
appCore = new CelestiaCore();
GetLogger()->setLevel(verbosity);
// Gettext integration
setlocale(LC_ALL, "");