mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
game.c: fix -game_dir and -j by moving G_ExtInit() after G_CheckCommandLine().
git-svn-id: https://svn.eduke32.com/eduke32@4571 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
757dbe9d6b
commit
3aaf167d6b
1 changed files with 6 additions and 3 deletions
|
@ -11156,8 +11156,6 @@ int32_t app_main(int32_t argc, const char **argv)
|
|||
if (!usecwd)
|
||||
G_AddSearchPaths();
|
||||
|
||||
G_ExtInit();
|
||||
|
||||
g_numSkills = 4;
|
||||
ud.multimode = 1;
|
||||
|
||||
|
@ -11165,11 +11163,16 @@ int32_t app_main(int32_t argc, const char **argv)
|
|||
G_AddDef("duke3d-android.def");
|
||||
#endif
|
||||
|
||||
// this needs to happen before G_CheckCommandLine because G_GameExit accesses g_player[0]
|
||||
// This needs to happen before G_CheckCommandLine() because G_GameExit()
|
||||
// accesses g_player[0].
|
||||
G_MaybeAllocPlayer(0);
|
||||
|
||||
G_CheckCommandLine(argc,argv);
|
||||
|
||||
// This needs to happen afterwards, as G_CheckCommandLine() is where we set
|
||||
// up the command-line-provided search paths (duh).
|
||||
G_ExtInit();
|
||||
|
||||
#if defined(RENDERTYPEWIN) && defined(USE_OPENGL)
|
||||
if (forcegl) initprintf("GL driver blacklist disabled.\n");
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue