summaryrefslogtreecommitdiffstats
path: root/src/extras/frontendoption.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-04 19:03:31 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-04 19:03:31 +0100
commit601f77b5c818d870146d829137e83a62cc7b36b9 (patch)
treebe3094ffee8685eef15e969f93fc60acb45d8be0 /src/extras/frontendoption.cpp
parentfix (diff)
parentDouble the volume for mission audio in OAL + small fix (diff)
downloadre3-601f77b5c818d870146d829137e83a62cc7b36b9.tar
re3-601f77b5c818d870146d829137e83a62cc7b36b9.tar.gz
re3-601f77b5c818d870146d829137e83a62cc7b36b9.tar.bz2
re3-601f77b5c818d870146d829137e83a62cc7b36b9.tar.lz
re3-601f77b5c818d870146d829137e83a62cc7b36b9.tar.xz
re3-601f77b5c818d870146d829137e83a62cc7b36b9.tar.zst
re3-601f77b5c818d870146d829137e83a62cc7b36b9.zip
Diffstat (limited to 'src/extras/frontendoption.cpp')
-rw-r--r--src/extras/frontendoption.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/extras/frontendoption.cpp b/src/extras/frontendoption.cpp
index 1f154250..8a95a49a 100644
--- a/src/extras/frontendoption.cpp
+++ b/src/extras/frontendoption.cpp
@@ -111,7 +111,7 @@ void FrontendOptionAddBuiltinAction(const char* gxtKey, uint16 x, uint16 y, uint
option.m_TargetMenu = targetMenu;
}
-void FrontendOptionAddSelect(const char* gxtKey, uint16 x, uint16 y, uint8 align, const char** rightTexts, int8 numRightTexts, int8 *var, bool onlyApplyOnEnter, ChangeFunc changeFunc, const char* saveName)
+void FrontendOptionAddSelect(const char* gxtKey, uint16 x, uint16 y, uint8 align, const char** rightTexts, int8 numRightTexts, int8 *var, bool onlyApplyOnEnter, ChangeFunc changeFunc, const char* saveName, bool disableIfGameLoaded)
{
int8 screenOptionOrder = RegisterNewOption();
@@ -133,6 +133,7 @@ void FrontendOptionAddSelect(const char* gxtKey, uint16 x, uint16 y, uint8 align
option.m_CFOSelect->save = saveName;
option.m_CFOSelect->onlyApplyOnEnter = onlyApplyOnEnter;
option.m_CFOSelect->changeFunc = changeFunc;
+ option.m_CFOSelect->disableIfGameLoaded = disableIfGameLoaded;
}
void FrontendOptionAddDynamic(const char* gxtKey, uint16 x, uint16 y, uint8 align, DrawFunc drawFunc, int8 *var, ButtonPressFunc buttonPressFunc, const char* saveName)