summaryrefslogtreecommitdiffstats
path: root/src/core/Frontend.h
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-01-15 02:40:34 +0100
committershfil <filip.gawin@zoho.com>2021-01-17 21:33:53 +0100
commit448e41ecaa66483c4cf764fdeb66a857a42719cf (patch)
tree15074cca348cdfcb33e45ecf3ae011dea6f68953 /src/core/Frontend.h
parentIncludes overhaul, fix some compiler warnings (diff)
downloadre3-448e41ecaa66483c4cf764fdeb66a857a42719cf.tar
re3-448e41ecaa66483c4cf764fdeb66a857a42719cf.tar.gz
re3-448e41ecaa66483c4cf764fdeb66a857a42719cf.tar.bz2
re3-448e41ecaa66483c4cf764fdeb66a857a42719cf.tar.lz
re3-448e41ecaa66483c4cf764fdeb66a857a42719cf.tar.xz
re3-448e41ecaa66483c4cf764fdeb66a857a42719cf.tar.zst
re3-448e41ecaa66483c4cf764fdeb66a857a42719cf.zip
Diffstat (limited to 'src/core/Frontend.h')
-rw-r--r--src/core/Frontend.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/Frontend.h b/src/core/Frontend.h
index 36647899..b0100fdc 100644
--- a/src/core/Frontend.h
+++ b/src/core/Frontend.h
@@ -494,6 +494,7 @@ struct CCustomScreenLayout {
struct CCFO
{
int8 *value;
+ const char *saveCat;
const char *save;
};
@@ -508,11 +509,12 @@ struct CCFOSelect : CCFO
bool disableIfGameLoaded;
CCFOSelect() {};
- CCFOSelect(int8* value, const char* save, const char** rightTexts, int8 numRightTexts, bool onlyApplyOnEnter, ChangeFunc changeFunc = nil, bool disableIfGameLoaded = false){
+ CCFOSelect(int8* value, const char* saveCat, const char* save, const char** rightTexts, int8 numRightTexts, bool onlyApplyOnEnter, ChangeFunc changeFunc = nil, bool disableIfGameLoaded = false){
this->value = value;
if (value)
this->lastSavedValue = this->displayedValue = *value;
+ this->saveCat = saveCat;
this->save = save;
this->rightTexts = (char**)rightTexts;
this->numRightTexts = numRightTexts;
@@ -528,8 +530,9 @@ struct CCFODynamic : CCFO
ButtonPressFunc buttonPressFunc;
CCFODynamic() {};
- CCFODynamic(int8* value, const char* save, DrawFunc drawFunc, ButtonPressFunc buttonPressFunc){
+ CCFODynamic(int8* value, const char* saveCat, const char* save, DrawFunc drawFunc, ButtonPressFunc buttonPressFunc){
this->value = value;
+ this->saveCat = saveCat;
this->save = save;
this->drawFunc = drawFunc;
this->buttonPressFunc = buttonPressFunc;