summaryrefslogtreecommitdiffstats
path: root/src/core/re3.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-07-11 11:03:56 +0200
committerSergeanur <s.anureev@yandex.ua>2020-07-11 11:04:26 +0200
commit6eb8f6ae5a87fe32c93388e67559da988f48fb7f (patch)
tree3e803214b7955c83077914407ad4c4b2d2f1c83e /src/core/re3.cpp
parentenable island loading for now (diff)
downloadre3-6eb8f6ae5a87fe32c93388e67559da988f48fb7f.tar
re3-6eb8f6ae5a87fe32c93388e67559da988f48fb7f.tar.gz
re3-6eb8f6ae5a87fe32c93388e67559da988f48fb7f.tar.bz2
re3-6eb8f6ae5a87fe32c93388e67559da988f48fb7f.tar.lz
re3-6eb8f6ae5a87fe32c93388e67559da988f48fb7f.tar.xz
re3-6eb8f6ae5a87fe32c93388e67559da988f48fb7f.tar.zst
re3-6eb8f6ae5a87fe32c93388e67559da988f48fb7f.zip
Diffstat (limited to 'src/core/re3.cpp')
-rw-r--r--src/core/re3.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/re3.cpp b/src/core/re3.cpp
index 7aa6800e..d6319f3a 100644
--- a/src/core/re3.cpp
+++ b/src/core/re3.cpp
@@ -132,6 +132,14 @@ void ToggleFreeCam(int8 action)
}
#endif
+#ifdef CUTSCENE_BORDERS_SWITCH
+void BorderModeChange(int8 displayedValue)
+{
+ CMenuManager::m_PrefsCutsceneBorders = !!displayedValue;
+ FrontEndMenuManager.SaveSettings();
+}
+#endif
+
// Reloaded on language change, so you can use hardcoded wchar* and TheText.Get with peace of mind
void
CustomFrontendOptionsPopulate(void)
@@ -161,6 +169,12 @@ CustomFrontendOptionsPopulate(void)
FrontendOptionSetPosition(MENUPAGE_CONTROLLER_PC, 1);
FrontendOptionAddDynamic(text, nil, ToggleFreeCam, nil);
#endif
+
+#ifdef CUTSCENE_BORDERS_SWITCH
+ static const wchar *off_on[] = { TheText.Get("FEM_OFF"), TheText.Get("FEM_ON") };
+ FrontendOptionSetPosition(MENUPAGE_GRAPHICS_SETTINGS, 9);
+ FrontendOptionAddSelect((const wchar *)L"CUTSCENE BORDERS", off_on, 2, (int8 *)&CMenuManager::m_PrefsCutsceneBorders, false, BorderModeChange, nil);
+#endif
}
#endif