diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-07-11 12:03:56 +0300 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-07-11 12:04:26 +0300 |
commit | 6eb8f6ae5a87fe32c93388e67559da988f48fb7f (patch) | |
tree | 3e803214b7955c83077914407ad4c4b2d2f1c83e /src/core/Frontend.cpp | |
parent | 00bba630f6e070a94af498812bd555e2fd4d9ada (diff) |
Add cutscene borders switch to the menu
Diffstat (limited to 'src/core/Frontend.cpp')
-rw-r--r-- | src/core/Frontend.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/Frontend.cpp b/src/core/Frontend.cpp index 841f6bbb..e67e939a 100644 --- a/src/core/Frontend.cpp +++ b/src/core/Frontend.cpp @@ -112,6 +112,10 @@ int8 CMenuManager::m_bFrontEnd_ReloadObrTxtGxt; int32 CMenuManager::m_PrefsMusicVolume = 102; int32 CMenuManager::m_PrefsSfxVolume = 102; +#ifdef CUTSCENE_BORDERS_SWITCH +bool CMenuManager::m_PrefsCutsceneBorders = true; +#endif + char CMenuManager::m_PrefsSkinFile[256] = DEFAULT_SKIN_NAME; int32 CMenuManager::m_KeyPressedCode = -1; @@ -3218,6 +3222,9 @@ CMenuManager::LoadSettings() #ifdef FREE_CAM CFileMgr::Read(fileHandle, (char*)&TheCamera.bFreeCam, 1); #endif +#ifdef CUTSCENE_BORDERS_SWITCH + CFileMgr::Read(fileHandle, (char *)&CMenuManager::m_PrefsCutsceneBorders, 1); +#endif } } @@ -3311,6 +3318,9 @@ CMenuManager::SaveSettings() #ifdef FREE_CAM CFileMgr::Write(fileHandle, (char*)&TheCamera.bFreeCam, 1); #endif +#ifdef CUTSCENE_BORDERS_SWITCH + CFileMgr::Write(fileHandle, (char *)&CMenuManager::m_PrefsCutsceneBorders, 1); +#endif } CFileMgr::CloseFile(fileHandle); |