summaryrefslogtreecommitdiffstats
path: root/src/skel/win/win.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-01-15 02:40:34 +0100
committershfil <filip.gawin@zoho.com>2021-01-17 21:33:53 +0100
commit448e41ecaa66483c4cf764fdeb66a857a42719cf (patch)
tree15074cca348cdfcb33e45ecf3ae011dea6f68953 /src/skel/win/win.cpp
parentIncludes overhaul, fix some compiler warnings (diff)
downloadre3-448e41ecaa66483c4cf764fdeb66a857a42719cf.tar
re3-448e41ecaa66483c4cf764fdeb66a857a42719cf.tar.gz
re3-448e41ecaa66483c4cf764fdeb66a857a42719cf.tar.bz2
re3-448e41ecaa66483c4cf764fdeb66a857a42719cf.tar.lz
re3-448e41ecaa66483c4cf764fdeb66a857a42719cf.tar.xz
re3-448e41ecaa66483c4cf764fdeb66a857a42719cf.tar.zst
re3-448e41ecaa66483c4cf764fdeb66a857a42719cf.zip
Diffstat (limited to '')
-rw-r--r--src/skel/win/win.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/skel/win/win.cpp b/src/skel/win/win.cpp
index d373a8b5..5a0c7db2 100644
--- a/src/skel/win/win.cpp
+++ b/src/skel/win/win.cpp
@@ -2142,6 +2142,7 @@ WinMain(HINSTANCE instance,
ShowWindow(PSGLOBAL(window), cmdShow);
UpdateWindow(PSGLOBAL(window));
+ // This part is needed because controller initialisation overwrites loaded settings.
{
CFileMgr::SetDirMyDocuments();
@@ -2154,6 +2155,10 @@ WinMain(HINSTANCE instance,
}
CFileMgr::SetDir("");
+
+#ifdef LOAD_INI_SETTINGS
+ LoadINIControllerSettings();
+#endif
}
SetErrorMode(SEM_FAILCRITICALERRORS);