mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Prevent SDL_INIT when the game does not need to launch
This commit is contained in:
@@ -124,13 +124,8 @@ namespace OpenRCT2
|
||||
|
||||
sint32 RunOpenRCT2(int argc, char * * argv) override
|
||||
{
|
||||
core_init();
|
||||
int runGame = cmdline_run((const char * *)argv, argc);
|
||||
if (runGame == 1)
|
||||
{
|
||||
Initialise();
|
||||
Launch();
|
||||
}
|
||||
Initialise();
|
||||
Launch();
|
||||
return gExitCode;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user