1
0
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:
Ted John
2017-05-08 21:36:35 +01:00
committed by Gymnasiast
parent 00199051c1
commit f1a8b32db4
3 changed files with 39 additions and 25 deletions

View File

@@ -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;
}