Move M_Init() to fix saving of some menu-specific cvars

This commit is contained in:
toaster 2022-12-31 16:05:04 +00:00
parent 21858082d2
commit dc7222821c

View file

@ -1520,14 +1520,14 @@ void D_SRB2Main(void)
I_RegisterSysCommands();
M_Init();
//--------------------------------------------------------- CONFIG.CFG
M_FirstLoadConfig(); // WARNING : this do a "COM_BufExecute()"
// Load Profiles now that default controls have been defined
PR_LoadProfiles(); // load control profiles
M_Init();
#if (defined (__unix__) && !defined (MSDOS)) || defined (UNIXCOMMON) || defined (HAVE_SDL)
VID_PrepareModeList(); // Regenerate Modelist according to cv_fullscreen
#endif