aboutsummaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorneonloop2021-09-07 15:08:27 +0000
committerneonloop2021-09-07 15:08:27 +0000
commit5d178649a6af2963e86e67613470fc31d64e5454 (patch)
treec2aee65357e2dfd11796beeda20705da520ff98e /menu.c
parent7032dd1ce78e03f1f50475be76ef8b5c642c9d01 (diff)
downloadpicoarch-5d178649a6af2963e86e67613470fc31d64e5454.tar.gz
picoarch-5d178649a6af2963e86e67613470fc31d64e5454.tar.bz2
picoarch-5d178649a6af2963e86e67613470fc31d64e5454.zip
Hide "Load new game" in mame2000
It breaks if you unload a game and then try to run a new game, so the option should be hidden.
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/menu.c b/menu.c
index 1dac041..973a446 100644
--- a/menu.c
+++ b/menu.c
@@ -672,6 +672,8 @@ void menu_loop(void)
{
static int sel = 0;
bool needs_disc_ctrl = disc_get_count() > 1;
+ const struct core_override *override = get_overrides();
+
plat_video_menu_enter(1);
me_enable(e_menu_options, MA_OPT_CORE_OPTS, core_options.visible_len > 0);
@@ -682,6 +684,9 @@ void menu_loop(void)
me_enable(e_menu_main, MA_MAIN_DISC_CTRL, needs_disc_ctrl);
+ if (override)
+ me_enable(e_menu_main, MA_MAIN_CONTENT_SEL, !override->block_load_content);
+
#ifdef MMENU
if (state_allowed()) {
me_enable(e_menu_main, MA_MAIN_SAVE_STATE, mmenu == NULL);