From 5d178649a6af2963e86e67613470fc31d64e5454 Mon Sep 17 00:00:00 2001 From: neonloop Date: Tue, 7 Sep 2021 15:08:27 +0000 Subject: 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. --- menu.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'menu.c') 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); -- cgit v1.2.3