From 1abf53ca6a7a01ae2d4491825a97b0a4baef634a Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sun, 10 Jul 2016 02:42:38 +1000 Subject: UI code refactoring: [Vas Crabb] * Split out main menu and dat box drawing from base class * Make a bunch of class statics proper per-machine persistent objects * Object lifecycle fixes --- src/frontend/mame/ui/filesel.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/frontend/mame/ui/filesel.cpp') diff --git a/src/frontend/mame/ui/filesel.cpp b/src/frontend/mame/ui/filesel.cpp index 34e86c99fe8..673f6a96161 100644 --- a/src/frontend/mame/ui/filesel.cpp +++ b/src/frontend/mame/ui/filesel.cpp @@ -392,18 +392,18 @@ void menu_file_selector::handle() case SELECTOR_ENTRY_TYPE_EMPTY: // empty slot - unload m_result = result::EMPTY; - menu::stack_pop(machine()); + stack_pop(); break; case SELECTOR_ENTRY_TYPE_CREATE: // create m_result = result::CREATE; - menu::stack_pop(machine()); + stack_pop(); break; case SELECTOR_ENTRY_TYPE_SOFTWARE_LIST: m_result = result::SOFTLIST; - menu::stack_pop(machine()); + stack_pop(); break; case SELECTOR_ENTRY_TYPE_DRIVE: @@ -424,7 +424,7 @@ void menu_file_selector::handle() // file m_current_file.assign(entry->fullpath); m_result = result::FILE; - menu::stack_pop(machine()); + stack_pop(); break; } @@ -551,7 +551,7 @@ void menu_select_rw::handle() if (event != nullptr && event->iptkey == IPT_UI_SELECT) { m_result = result_from_itemref(event->itemref); - menu::stack_pop(machine()); + stack_pop(); } } -- cgit v1.2.3-70-g09d2