mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-08 03:24:08 +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
|
@ -16,6 +16,7 @@
|
|||
#include "ModelIndices.h"
|
||||
#include "Camera.h"
|
||||
#include "win.h"
|
||||
#include "PCSave.h"
|
||||
|
||||
CControllerConfigManager &ControlsManager = *(CControllerConfigManager*)0x8F43A4;
|
||||
|
||||
|
@ -75,7 +76,7 @@ void CControllerConfigManager::LoadSettings(int32 file)
|
|||
char buff[29];
|
||||
CFileMgr::Read(file, buff, sizeof(buff));
|
||||
|
||||
if (!strcmp(buff, "THIS FILE IS NOT VALID YET"))
|
||||
if (!strncmp(buff, TopLineEmptyFile, sizeof(TopLineEmptyFile)-1))
|
||||
bValid = false;
|
||||
else
|
||||
CFileMgr::Seek(file, 0, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue