summaryrefslogtreecommitdiffstats
path: root/src/core/Frontend.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-02-07 18:35:43 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2021-02-07 18:38:53 +0100
commitd224f8b7eea6142223362c13551acad623ddb4c7 (patch)
tree1ca13f2df652867700bfa402dcdfdbfdadca37c4 /src/core/Frontend.cpp
parentDetect joystick menu for XInput (diff)
downloadre3-d224f8b7eea6142223362c13551acad623ddb4c7.tar
re3-d224f8b7eea6142223362c13551acad623ddb4c7.tar.gz
re3-d224f8b7eea6142223362c13551acad623ddb4c7.tar.bz2
re3-d224f8b7eea6142223362c13551acad623ddb4c7.tar.lz
re3-d224f8b7eea6142223362c13551acad623ddb4c7.tar.xz
re3-d224f8b7eea6142223362c13551acad623ddb4c7.tar.zst
re3-d224f8b7eea6142223362c13551acad623ddb4c7.zip
Diffstat (limited to 'src/core/Frontend.cpp')
-rw-r--r--src/core/Frontend.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/Frontend.cpp b/src/core/Frontend.cpp
index 5e9f6d0d..44e143c8 100644
--- a/src/core/Frontend.cpp
+++ b/src/core/Frontend.cpp
@@ -3655,7 +3655,13 @@ CMenuManager::LoadAllTextures()
m_aMenuSprites[i].SetAddressing(rwTEXTUREADDRESSBORDER);
}
#ifdef MENU_MAP
+ static bool menuOptionAdded = false;
for (int i = 0; i < ARRAY_SIZE(MapFilenames); i++) {
+ if (!menuOptionAdded && RwTextureRead(MapFilenames[i][0], MapFilenames[i][1])) {
+ FrontendOptionSetCursor(MENUPAGE_PAUSE_MENU, 2, false);
+ FrontendOptionAddBuiltinAction("FEG_MAP", MENUACTION_CHANGEMENU, MENUPAGE_MAP, SAVESLOT_NONE);
+ menuOptionAdded = true;
+ }
m_aMapSprites[i].SetTexture(MapFilenames[i][0], MapFilenames[i][1]);
m_aMapSprites[i].SetAddressing(rwTEXTUREADDRESSBORDER);
}