diff options
author | neonloop | 2021-09-07 15:08:27 +0000 |
---|---|---|
committer | neonloop | 2021-09-07 15:08:27 +0000 |
commit | 5d178649a6af2963e86e67613470fc31d64e5454 (patch) | |
tree | c2aee65357e2dfd11796beeda20705da520ff98e /menu.c | |
parent | 7032dd1ce78e03f1f50475be76ef8b5c642c9d01 (diff) | |
download | picoarch-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |