diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-08-15 03:59:12 +0300 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-08-15 03:59:12 +0300 |
commit | f4e723e690d29f23d77f66980f1c91c7a626e38e (patch) | |
tree | 38f567a7710dbf447fc3be9064e83ffbd399f9a0 /src/skel | |
parent | 0db14d718c65856824750e0e8e49392de617a5ad (diff) |
Fix .ini fix for glfw
Diffstat (limited to 'src/skel')
-rw-r--r-- | src/skel/glfw/glfw.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/skel/glfw/glfw.cpp b/src/skel/glfw/glfw.cpp index 81f3b7b1..f8beee64 100644 --- a/src/skel/glfw/glfw.cpp +++ b/src/skel/glfw/glfw.cpp @@ -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 } |