summaryrefslogtreecommitdiffstats
path: root/src/skel/win/win.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-16 09:09:39 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-16 09:09:39 +0200
commitd7e764d519a9b96969786a99494eba8c3af988b9 (patch)
tree811331933b6959a1071d452536c4eca7873621ac /src/skel/win/win.cpp
parentMerge branch 'lcs' of github.com:GTAmodding/re3 into lcs (diff)
parentPS2 audio reflections (diff)
downloadre3-d7e764d519a9b96969786a99494eba8c3af988b9.tar
re3-d7e764d519a9b96969786a99494eba8c3af988b9.tar.gz
re3-d7e764d519a9b96969786a99494eba8c3af988b9.tar.bz2
re3-d7e764d519a9b96969786a99494eba8c3af988b9.tar.lz
re3-d7e764d519a9b96969786a99494eba8c3af988b9.tar.xz
re3-d7e764d519a9b96969786a99494eba8c3af988b9.tar.zst
re3-d7e764d519a9b96969786a99494eba8c3af988b9.zip
Diffstat (limited to 'src/skel/win/win.cpp')
-rw-r--r--src/skel/win/win.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/skel/win/win.cpp b/src/skel/win/win.cpp
index a6d8bea8..639f6272 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
}