mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-13 23:34:09 +00:00
Fixed settings loading, added TopLineEmptyFile
This commit is contained in:
parent
d84033a710
commit
74ca8bb608
3 changed files with 7 additions and 4 deletions
|
@ -1148,12 +1148,12 @@ void CMenuManager::LoadSettings()
|
|||
CMBlur::BlurOn = true;
|
||||
MousePointerStateHelper.bInvertVertically = true;
|
||||
|
||||
static char Ver;
|
||||
char Ver[50];
|
||||
int fileHandle = CFileMgr::OpenFile("gta3.set", "r");
|
||||
if (fileHandle) {
|
||||
CFileMgr::Read(fileHandle, (char*)&Ver, sizeof(Ver));
|
||||
CFileMgr::Read(fileHandle, Ver, 29);
|
||||
|
||||
if (strncmp(&Ver, "THIS FILE IS NOT VALID YET", 26)) {
|
||||
if (strncmp(Ver, TopLineEmptyFile, sizeof(TopLineEmptyFile) - 1)) {
|
||||
CFileMgr::Seek(fileHandle, 0, 0);
|
||||
ControlsManager.LoadSettings(fileHandle);
|
||||
CFileMgr::Read(fileHandle, gString, 20);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue