summaryrefslogtreecommitdiffstats
path: root/src/core/Frontend.cpp
diff options
context:
space:
mode:
authorXinerki <simasadves@gmail.com>2020-05-21 12:06:09 +0200
committerXinerki <simasadves@gmail.com>2020-05-21 12:06:09 +0200
commitb4060a4789e8f079a86fc106b8a17ea66de23f8d (patch)
treef5157964e68f43f147af1b7da462bf823e4ec0e6 /src/core/Frontend.cpp
parentapproach separation differently (diff)
downloadre3-b4060a4789e8f079a86fc106b8a17ea66de23f8d.tar
re3-b4060a4789e8f079a86fc106b8a17ea66de23f8d.tar.gz
re3-b4060a4789e8f079a86fc106b8a17ea66de23f8d.tar.bz2
re3-b4060a4789e8f079a86fc106b8a17ea66de23f8d.tar.lz
re3-b4060a4789e8f079a86fc106b8a17ea66de23f8d.tar.xz
re3-b4060a4789e8f079a86fc106b8a17ea66de23f8d.tar.zst
re3-b4060a4789e8f079a86fc106b8a17ea66de23f8d.zip
Diffstat (limited to '')
-rw-r--r--src/core/Frontend.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/Frontend.cpp b/src/core/Frontend.cpp
index dd840bdc..77eab0a0 100644
--- a/src/core/Frontend.cpp
+++ b/src/core/Frontend.cpp
@@ -3115,6 +3115,9 @@ CMenuManager::LoadSettings()
CFileMgr::Read(fileHandle, m_PrefsSkinFile, 256);
CFileMgr::Read(fileHandle, (char*)&m_ControlMethod, 1);
CFileMgr::Read(fileHandle, (char*)&m_PrefsLanguage, 1);
+#ifdef FREE_CAM
+ CFileMgr::Read(fileHandle, (char*)&TheCamera.bFreeCam, 1);
+#endif
}
}
@@ -3205,6 +3208,9 @@ CMenuManager::SaveSettings()
CFileMgr::Write(fileHandle, m_PrefsSkinFile, 256);
CFileMgr::Write(fileHandle, (char*)&m_ControlMethod, 1);
CFileMgr::Write(fileHandle, (char*)&m_PrefsLanguage, 1);
+#ifdef FREE_CAM
+ CFileMgr::Write(fileHandle, (char*)&TheCamera.bFreeCam, 1);
+#endif
}
CFileMgr::CloseFile(fileHandle);
@@ -4952,6 +4958,13 @@ CMenuManager::ProcessOnOffMenuOptions()
DMAudio.PlayFrontEndSound(SOUND_FRONTEND_MENU_SUCCESS, 0);
SaveSettings();
break;
+#ifdef FREE_CAM
+ case MENUACTION_FREECAM:
+ TheCamera.bFreeCam = !TheCamera.bFreeCam;
+ DMAudio.PlayFrontEndSound(SOUND_FRONTEND_MENU_SUCCESS, 0);
+ SaveSettings();
+ break;
+#endif
}
}