mirror of
https://github.com/GTAmodding/re3.git
synced 2025-08-26 04:50:49 +00:00
Store all settings in .INI
This commit is contained in:
parent
5a47379bf5
commit
448e41ecaa
10 changed files with 417 additions and 127 deletions
|
@ -1598,6 +1598,7 @@ main(int argc, char *argv[])
|
|||
SystemParametersInfo(SPI_SETSTICKYKEYS, sizeof(STICKYKEYS), &NewStickyKeys, SPIF_SENDCHANGE);
|
||||
#endif
|
||||
|
||||
// This part is needed because controller initialisation overwrites loaded settings.
|
||||
{
|
||||
CFileMgr::SetDirMyDocuments();
|
||||
|
||||
|
@ -1610,6 +1611,10 @@ main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
CFileMgr::SetDir("");
|
||||
|
||||
#ifdef LOAD_INI_SETTINGS
|
||||
LoadINIControllerSettings();
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue