diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-08-15 02:29:49 +0200 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-08-15 03:07:48 +0200 |
commit | 747ae0427950b0f0883b46db4f85ca34a684536f (patch) | |
tree | a61a7ee7844dfc061b49a1f6a5a06c6b031f7289 /src/skel/glfw | |
parent | Revert "map memory usage high default" (diff) | |
download | re3-747ae0427950b0f0883b46db4f85ca34a684536f.tar re3-747ae0427950b0f0883b46db4f85ca34a684536f.tar.gz re3-747ae0427950b0f0883b46db4f85ca34a684536f.tar.bz2 re3-747ae0427950b0f0883b46db4f85ca34a684536f.tar.lz re3-747ae0427950b0f0883b46db4f85ca34a684536f.tar.xz re3-747ae0427950b0f0883b46db4f85ca34a684536f.tar.zst re3-747ae0427950b0f0883b46db4f85ca34a684536f.zip |
Diffstat (limited to 'src/skel/glfw')
-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 8d3fc7d7..44f0c83a 100644 --- a/src/skel/glfw/glfw.cpp +++ b/src/skel/glfw/glfw.cpp @@ -1935,10 +1935,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 } |