Move autoexec.cfg execution to directly after settings.cfg execution

git-svn-id: https://svn.eduke32.com/eduke32@6498 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2017-11-22 05:23:23 +00:00
parent 212a318f4d
commit fe9c6d25f4

View file

@ -6464,9 +6464,11 @@ int app_main(int argc, char const * const * argv)
else
Bsprintf(tempbuf, "%s_settings.cfg", p);
OSD_Exec(tempbuf);
Bfree(setupFileName);
OSD_Exec(tempbuf);
OSD_Exec("autoexec.cfg");
if (g_networkMode != NET_DEDICATED_SERVER)
{
if (setgamemode(ud.config.ScreenMode,ud.config.ScreenWidth,ud.config.ScreenHeight,ud.config.ScreenBPP) < 0)
@ -6509,12 +6511,8 @@ int app_main(int argc, char const * const * argv)
S_MusicStartup();
S_SoundStartup();
Menu_Init();
}
// loadtmb();
OSD_Exec("autoexec.cfg");
Menu_Init();
if (ud.warp_on > 1 && (!g_netServer && ud.multimode < 2))
{