diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-08-15 03:29:49 +0300 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-08-15 03:29:49 +0300 |
commit | fd52285074ca6b1eb4a0b3b7990358ab08b837f4 (patch) | |
tree | cd52fc6718ec671e10343dc20f2b011f2ccc9136 /src/skel | |
parent | eadf0496bf2b365938b64f5f239d0c353ce9770e (diff) |
Fix premature .ini saving leading to missing bindings
Diffstat (limited to 'src/skel')
-rw-r--r-- | src/skel/win/win.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/skel/win/win.cpp b/src/skel/win/win.cpp index f251f58d..c49f0ab9 100644 --- a/src/skel/win/win.cpp +++ b/src/skel/win/win.cpp @@ -2179,10 +2179,12 @@ WinMain(HINSTANCE instance, #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 } |