summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/mainmenu.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2021-10-20 02:03:43 +1100
committer Vas Crabb <vas@vastheman.com>2021-10-20 02:03:43 +1100
commit0a9ea09a9a328884b61ce57c2e3b51705da50467 (patch)
tree98153d6f2244b0053d9c1894b5c71277fb18522d /src/frontend/mame/ui/mainmenu.cpp
parent9e7779bdd5c17a847ed4c06a9b7e68a39ec6576b (diff)
Tie up a few loose ends:
debugger: Octal cheats for octal address spaces. frontend: Pass events for automatically generated menu items to the plugin - they will have index zero. frontend: Don't try calling the data plugin from the main menu if the system isn't starting yet - doing so will prevent the data plugin from loading at all.
Diffstat (limited to 'src/frontend/mame/ui/mainmenu.cpp')
-rw-r--r--src/frontend/mame/ui/mainmenu.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/frontend/mame/ui/mainmenu.cpp b/src/frontend/mame/ui/mainmenu.cpp
index 32240167318..73084728edb 100644
--- a/src/frontend/mame/ui/mainmenu.cpp
+++ b/src/frontend/mame/ui/mainmenu.cpp
@@ -159,8 +159,9 @@ void menu_main::populate(float &customtop, float &custombottom)
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);
+ if (machine().phase() >= machine_phase::RESET)
+ 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);