Fix .ini fix for glfw

This commit is contained in:
erorcun 2021-08-15 03:59:12 +03:00
parent 0db14d718c
commit f4e723e690
1 changed files with 6 additions and 4 deletions

View File

@ -2049,10 +2049,12 @@ main(int argc, char *argv[])
#ifdef LOAD_INI_SETTINGS
LoadINIControllerSettings();
if (connectedPadButtons != 0) {
ControlsManager.InitDefaultControlConfigJoyPad(connectedPadButtons);
SaveINIControllerSettings();
}
if (connectedPadButtons != 0)
ControlsManager.InitDefaultControlConfigJoyPad(connectedPadButtons); // add (connected-saved) amount of new button assignments on top of ours
// these have 2 purposes: creating .ini at the start, and adding newly introduced settings to old .ini at the start
SaveINISettings();
SaveINIControllerSettings();
#endif
}