mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 12:59:01 +00:00
Fix premature .ini saving leading to missing bindings
This commit is contained in:
parent
eadf0496bf
commit
fd52285074
2 changed files with 6 additions and 7 deletions
|
@ -3169,9 +3169,6 @@ CMenuManager::LoadSettings()
|
||||||
if (LoadINISettings()) {
|
if (LoadINISettings()) {
|
||||||
LoadINIControllerSettings();
|
LoadINIControllerSettings();
|
||||||
}
|
}
|
||||||
// if no reVC.ini, create it, or update it with new values
|
|
||||||
SaveINISettings();
|
|
||||||
SaveINIControllerSettings();
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef FIX_BUGS
|
#ifdef FIX_BUGS
|
||||||
|
|
|
@ -2179,10 +2179,12 @@ WinMain(HINSTANCE instance,
|
||||||
|
|
||||||
#ifdef LOAD_INI_SETTINGS
|
#ifdef LOAD_INI_SETTINGS
|
||||||
LoadINIControllerSettings();
|
LoadINIControllerSettings();
|
||||||
if (connectedPadButtons != 0) {
|
if (connectedPadButtons != 0)
|
||||||
ControlsManager.InitDefaultControlConfigJoyPad(connectedPadButtons);
|
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();
|
SaveINIControllerSettings();
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue