[win32] Create logger earlier to fix segv
SplashScreen class uses LoadImageFromFile which calls GetLoggerpull/1250/head
parent
9385415788
commit
a264433697
|
@ -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, "");
|
||||
|
|
Loading…
Reference in New Issue