mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 10:40:47 +00:00
Properly read settings from cfg
This commit is contained in:
parent
2fe0a6c496
commit
47b8dd509b
1 changed files with 19 additions and 1 deletions
|
@ -2538,6 +2538,25 @@ int app_main(int argc, char const* const* argv)
|
|||
OSD_SetParameters(0, 0, 0, 0, 0, 0, OSD_ERROR, OSDTEXT_RED, gamefunctions[gamefunc_Show_Console][0] == '\0' ? OSD_PROTECTED : 0);
|
||||
registerosdcommands();
|
||||
|
||||
SetupInput();
|
||||
|
||||
char *const setupFileName = Xstrdup(setupfilename);
|
||||
char *const p = strtok(setupFileName, ".");
|
||||
|
||||
if (!p || !Bstrcmp(setupfilename, kSetupFilename))
|
||||
Bsprintf(tempbuf, "settings.cfg");
|
||||
else
|
||||
Bsprintf(tempbuf, "%s_settings.cfg", p);
|
||||
|
||||
Xfree(setupFileName);
|
||||
|
||||
OSD_Exec(tempbuf);
|
||||
OSD_Exec("autoexec.cfg");
|
||||
|
||||
CONFIG_SetDefaultKeys(keydefaults, true);
|
||||
|
||||
system_getcvars();
|
||||
|
||||
if (nNetPlayerCount == -1)
|
||||
{
|
||||
nNetPlayerCount = nCfgNetPlayers - 1;
|
||||
|
@ -2601,7 +2620,6 @@ int app_main(int argc, char const* const* argv)
|
|||
FadeOut(0);
|
||||
// InstallEngine();
|
||||
KB_Startup();
|
||||
SetupInput();
|
||||
InitView();
|
||||
myloadconfig();
|
||||
InitFX();
|
||||
|
|
Loading…
Reference in a new issue