diff options
author | 2016-03-19 22:56:28 +0100 | |
---|---|---|
committer | 2016-03-19 22:56:28 +0100 | |
commit | 54b153ed684bf2b10b3794b549a5fe7ff88ad435 (patch) | |
tree | dfd3be92bdde5fa43b4ffb2ea8310f59b2429127 | |
parent | 436dfb0f4d632529d5c48355d3c31ca1688066e6 (diff) |
Fixed unwanted games unpauses when loading External DATs view. (nw)
-rw-r--r-- | src/emu/ui/datmenu.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/emu/ui/datmenu.cpp b/src/emu/ui/datmenu.cpp index a4d3e619ced..f5808ac81eb 100644 --- a/src/emu/ui/datmenu.cpp +++ b/src/emu/ui/datmenu.cpp @@ -100,13 +100,18 @@ void ui_menu_dats_view::handle() void ui_menu_dats_view::populate() { - machine().pause(); + bool paused = machine().paused(); + if (!paused) + machine().pause(); + (m_issoft == true) ? get_data_sw() : get_data(); item_append(MENU_SEPARATOR_ITEM, nullptr, (MENU_FLAG_UI_DATS | MENU_FLAG_LEFT_ARROW | MENU_FLAG_RIGHT_ARROW), nullptr); customtop = 2.0f * machine().ui().get_line_height() + 4.0f * UI_BOX_TB_BORDER; custombottom = machine().ui().get_line_height() + 3.0f * UI_BOX_TB_BORDER; - machine().resume(); + + if (!paused) + machine().resume(); } //------------------------------------------------- |