summaryrefslogtreecommitdiffstats
path: root/src/extras
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-01-04 14:05:49 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2021-01-04 14:05:49 +0100
commitae388c48d00677dde3c9c20c6a516ae7fb377e53 (patch)
treeadee093598615584d42a75ad88335aad2f8dd0d8 /src/extras
parentMerge pull request #924 from erorcun/miami (diff)
downloadre3-ae388c48d00677dde3c9c20c6a516ae7fb377e53.tar
re3-ae388c48d00677dde3c9c20c6a516ae7fb377e53.tar.gz
re3-ae388c48d00677dde3c9c20c6a516ae7fb377e53.tar.bz2
re3-ae388c48d00677dde3c9c20c6a516ae7fb377e53.tar.lz
re3-ae388c48d00677dde3c9c20c6a516ae7fb377e53.tar.xz
re3-ae388c48d00677dde3c9c20c6a516ae7fb377e53.tar.zst
re3-ae388c48d00677dde3c9c20c6a516ae7fb377e53.zip
Diffstat (limited to 'src/extras')
-rw-r--r--src/extras/frontendoption.cpp3
-rw-r--r--src/extras/frontendoption.h2
2 files changed, 3 insertions, 2 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)
diff --git a/src/extras/frontendoption.h b/src/extras/frontendoption.h
index 6670c323..2719f076 100644
--- a/src/extras/frontendoption.h
+++ b/src/extras/frontendoption.h
@@ -78,7 +78,7 @@ void FrontendOptionSetCursor(int screen, int8 option, bool overwrite = false);
// var is optional in AddDynamic, enables you to save them in an INI file(also needs passing char array to saveName param. obv), otherwise pass nil/0
void FrontendOptionAddBuiltinAction(const char* gxtKey, uint16 x, uint16 y, uint8 align, int action, int targetMenu = MENUPAGE_NONE, int saveSlot = SAVESLOT_NONE);
-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 = nil);
+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 = nil, bool disableIfGameLoaded = false);
void FrontendOptionAddDynamic(const char* gxtKey, uint16 x, uint16 y, uint8 align, DrawFunc rightTextDrawFunc, int8 *var, ButtonPressFunc buttonPressFunc, const char* saveName = nil);
// lineHeight = 0 means game will use MENU_DEFAULT_LINE_HEIGHT