summaryrefslogtreecommitdiffstats
path: root/src/core/Frontend.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2019-10-30 00:14:59 +0100
committerSergeanur <s.anureev@yandex.ua>2019-10-30 00:14:59 +0100
commit74ca8bb608c93058e744105d44b874f77374fd59 (patch)
treebc7580af604f97f9a4944488eb742bd42af1f441 /src/core/Frontend.cpp
parentSmall CPad fixes (diff)
downloadre3-74ca8bb608c93058e744105d44b874f77374fd59.tar
re3-74ca8bb608c93058e744105d44b874f77374fd59.tar.gz
re3-74ca8bb608c93058e744105d44b874f77374fd59.tar.bz2
re3-74ca8bb608c93058e744105d44b874f77374fd59.tar.lz
re3-74ca8bb608c93058e744105d44b874f77374fd59.tar.xz
re3-74ca8bb608c93058e744105d44b874f77374fd59.tar.zst
re3-74ca8bb608c93058e744105d44b874f77374fd59.zip
Diffstat (limited to 'src/core/Frontend.cpp')
-rw-r--r--src/core/Frontend.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/Frontend.cpp b/src/core/Frontend.cpp
index 984e693f..5911433c 100644
--- a/src/core/Frontend.cpp
+++ b/src/core/Frontend.cpp
@@ -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);