summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger/debugint.cpp
diff options
context:
space:
mode:
author Miodrag Milanović <mmicko@gmail.com>2016-04-28 10:56:15 +0200
committer Miodrag Milanović <mmicko@gmail.com>2016-04-28 10:56:15 +0200
commitf42b559baf02b6f91e5f9c85b55f4ddb32b4cd5f (patch)
tree51672156f645b7e3f3f4cfc6abe748ac51268d7e /src/osd/modules/debugger/debugint.cpp
parent508c19abf1bb17b4c3e9940789fe867010a1135f (diff)
parentb3578a6ec8ee41328cb1b02d462c41b18fbcee2d (diff)
Merge pull request #835 from ajrhacker/mui
Relieve UI menus and such from having to constantly fetch UI object from global state (nw)
Diffstat (limited to 'src/osd/modules/debugger/debugint.cpp')
-rw-r--r--src/osd/modules/debugger/debugint.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/osd/modules/debugger/debugint.cpp b/src/osd/modules/debugger/debugint.cpp
index b894f84f1a0..57041498681 100644
--- a/src/osd/modules/debugger/debugint.cpp
+++ b/src/osd/modules/debugger/debugint.cpp
@@ -9,6 +9,7 @@
*********************************************************************/
#include "emu.h"
+#include "mame.h"
#include "ui/ui.h"
#include "ui/menu.h"
#include "rendfont.h"
@@ -1310,7 +1311,7 @@ static void render_editor(DView_edit *editor)
class ui_menu_debug : public ui_menu {
public:
- ui_menu_debug(running_machine &machine, render_container *container) : ui_menu(machine, container) {}
+ ui_menu_debug(mame_ui_manager &mui, render_container *container) : ui_menu(mui, container) {}
virtual ~ui_menu_debug() {}
virtual void populate() override {}
virtual void handle() override {}
@@ -1327,7 +1328,7 @@ static void CreateMainMenu(running_machine &machine)
menu_sel = menu->get_selection();
global_free( menu);
}
- menu = global_alloc_clear<ui_menu_debug>(machine, &machine.render().ui_container());
+ menu = global_alloc_clear<ui_menu_debug>(mame_machine_manager::instance()->ui(), &machine.render().ui_container());
switch (focus_view->type)
{