diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-08-15 03:29:49 +0300 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-08-15 04:07:48 +0300 |
commit | 747ae0427950b0f0883b46db4f85ca34a684536f (patch) | |
tree | a61a7ee7844dfc061b49a1f6a5a06c6b031f7289 /src/skel/win | |
parent | df89e5091e7addaa87b8815dda00309b0de49a06 (diff) |
Fix premature .ini saving leading to missing bindings
Diffstat (limited to 'src/skel/win')
-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 01e56701..95ac28aa 100644 --- a/src/skel/win/win.cpp +++ b/src/skel/win/win.cpp @@ -2181,10 +2181,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 } |