diff options
author | 2021-10-20 05:27:31 +1100 | |
---|---|---|
committer | 2021-10-20 05:27:31 +1100 | |
commit | 4e74debb69abecb4f8f2b654040f56f768de9653 (patch) | |
tree | 729b87cdf6d2a8ea58966fd7fb520ba20343ffe1 /src | |
parent | 2327c5e785fe6be28e515ea7103f6be720362ab5 (diff) |
frontend: Don't show plugin options menu in main menu before start - it doesn't work anyway.
Diffstat (limited to 'src')
-rw-r--r-- | src/frontend/mame/ui/mainmenu.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/frontend/mame/ui/mainmenu.cpp b/src/frontend/mame/ui/mainmenu.cpp index 73084728edb..a50c346a1fe 100644 --- a/src/frontend/mame/ui/mainmenu.cpp +++ b/src/frontend/mame/ui/mainmenu.cpp @@ -156,12 +156,14 @@ void menu_main::populate(float &customtop, float &custombottom) if (machine().options().cheat()) item_append(_("Cheat"), 0, (void *)CHEAT); - if (machine().options().plugins() && !mame_machine_manager::instance()->lua()->get_menu().empty()) - item_append(_("Plugin Options"), 0, (void *)PLUGINS); - if (machine().phase() >= machine_phase::RESET) + { + if (machine().options().plugins() && !mame_machine_manager::instance()->lua()->get_menu().empty()) + item_append(_("Plugin Options"), 0, (void *)PLUGINS); + if (mame_machine_manager::instance()->lua()->call_plugin_check<const char *>("data_list", "", true)) item_append(_("External DAT View"), 0, (void *)EXTERNAL_DATS); + } item_append(menu_item_type::SEPARATOR); |