summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/menu.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2021-04-06 11:16:47 -0400
committer Vas Crabb <cuavas@users.noreply.github.com>2021-04-09 02:26:45 +1000
commit0b3f153f4db7ebb63f59bdf2dd098dfea26e1b44 (patch)
tree24c7eb17d74ca68367b0c696581bce0b5a172979 /src/frontend/mame/ui/menu.cpp
parentd7fa230addade73e3cff96f86afcbc2a76cd7a21 (diff)
Allow breaking into main menu before the machine fully starts (i.e. just before the initial soft reset) by using the normal "Config Menu" UI input
Note that the minor code shuffling in machine.cpp is necessary to prevent emulation from getting confused if "Select New Game" happens to be selected.
Diffstat (limited to 'src/frontend/mame/ui/menu.cpp')
-rw-r--r--src/frontend/mame/ui/menu.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/frontend/mame/ui/menu.cpp b/src/frontend/mame/ui/menu.cpp
index 2c0ee801f92..c53736b2ab4 100644
--- a/src/frontend/mame/ui/menu.cpp
+++ b/src/frontend/mame/ui/menu.cpp
@@ -1174,7 +1174,10 @@ void menu::do_handle()
// add an item to return - this is a really hacky way of doing this
if (!m_parent)
{
- item_append(_("Return to Machine"), 0, nullptr);
+ if (machine().phase() == machine_phase::INIT)
+ item_append(_("Start Machine"), 0, nullptr);
+ else
+ item_append(_("Return to Machine"), 0, nullptr);
}
else if (m_parent->is_special_main_menu())
{