diff options
author | 2016-05-29 10:04:20 -0400 | |
---|---|---|
committer | 2016-05-29 10:05:21 -0400 | |
commit | d134d16d7deea9f8066d0714bec4e62c4ef7fe33 (patch) | |
tree | 29c5eed995dd99c211a98459a59b9014d0f8abb4 /src/frontend/mame/ui/menu.cpp | |
parent | 7eeccac36aa0b880bbf8d95b17fbac7773b19758 (diff) |
Changed the backing representation of OPTION_UI from being a string to an enum
Diffstat (limited to 'src/frontend/mame/ui/menu.cpp')
-rw-r--r-- | src/frontend/mame/ui/menu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/mame/ui/menu.cpp b/src/frontend/mame/ui/menu.cpp index 3b523b697a6..995920655e6 100644 --- a/src/frontend/mame/ui/menu.cpp +++ b/src/frontend/mame/ui/menu.cpp @@ -266,14 +266,14 @@ void menu::reset(reset_options options) } else if (m_parent->is_special_main_menu()) { - if (strcmp(machine().options().ui(), "simple") == 0) + if (machine().options().ui() == emu_options::UI_SIMPLE) item_append(_("Exit"), nullptr, 0, nullptr); else item_append(_("Exit"), nullptr, FLAG_UI | FLAG_LEFT_ARROW | FLAG_RIGHT_ARROW, nullptr); } else { - if (strcmp(machine().options().ui(), "simple") != 0 && menu::stack_has_special_main_menu()) + if (machine().options().ui() != emu_options::UI_SIMPLE && menu::stack_has_special_main_menu()) item_append(_("Return to Previous Menu"), nullptr, FLAG_UI | FLAG_LEFT_ARROW | FLAG_RIGHT_ARROW, nullptr); else item_append(_("Return to Previous Menu"), nullptr, 0, nullptr); |