mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Move loading of settings.cfg to before video init so that it can respect r_togglecomposition.
git-svn-id: https://svn.eduke32.com/eduke32@5518 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
c2b5ae8256
commit
aafb01ab33
1 changed files with 10 additions and 10 deletions
|
@ -11902,6 +11902,16 @@ int32_t app_main(int32_t argc, const char **argv)
|
|||
|
||||
system_getcvars();
|
||||
|
||||
char *ptr = Xstrdup(setupfilename), *p = strtok(ptr, ".");
|
||||
|
||||
if (!Bstrcmp(setupfilename, SETUPFILENAME))
|
||||
Bsprintf(tempbuf, "settings.cfg");
|
||||
else
|
||||
Bsprintf(tempbuf, "%s_settings.cfg", p);
|
||||
|
||||
OSD_Exec(tempbuf);
|
||||
Bfree(ptr);
|
||||
|
||||
if (g_networkMode != NET_DEDICATED_SERVER)
|
||||
{
|
||||
if (setgamemode(ud.config.ScreenMode,ud.config.ScreenWidth,ud.config.ScreenHeight,ud.config.ScreenBPP) < 0)
|
||||
|
@ -11948,16 +11958,6 @@ int32_t app_main(int32_t argc, const char **argv)
|
|||
}
|
||||
// loadtmb();
|
||||
|
||||
char *ptr = Xstrdup(setupfilename), *p = strtok(ptr, ".");
|
||||
|
||||
if (!Bstrcmp(setupfilename, SETUPFILENAME))
|
||||
Bsprintf(tempbuf, "settings.cfg");
|
||||
else
|
||||
Bsprintf(tempbuf, "%s_settings.cfg", p);
|
||||
|
||||
OSD_Exec(tempbuf);
|
||||
Bfree(ptr);
|
||||
|
||||
OSD_Exec("autoexec.cfg");
|
||||
|
||||
M_Init();
|
||||
|
|
Loading…
Reference in a new issue