summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/ui/ui.cpp')
-rw-r--r--src/frontend/mame/ui/ui.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/frontend/mame/ui/ui.cpp b/src/frontend/mame/ui/ui.cpp
index 225c908f066..e1b0990193b 100644
--- a/src/frontend/mame/ui/ui.cpp
+++ b/src/frontend/mame/ui/ui.cpp
@@ -166,7 +166,9 @@ mame_ui_manager::mame_ui_manager(running_machine &machine)
, m_mouse_bitmap(32, 32)
, m_mouse_arrow_texture(nullptr)
, m_mouse_show(false)
- , m_target_font_height(0) {}
+ , m_target_font_height(0)
+ , m_has_warnings(false)
+{ }
mame_ui_manager::~mame_ui_manager()
{
@@ -329,10 +331,11 @@ void mame_ui_manager::display_startup_screens(bool first_time)
switch (state)
{
case 0:
- if (show_warnings)
- messagebox_text = machine_info().warnings_string();
- if (!messagebox_text.empty())
+ messagebox_text = machine_info().warnings_string();
+ m_has_warnings = !messagebox_text.empty();
+ if (m_has_warnings && show_warnings)
{
+ messagebox_text.append("\n\nPress any key to continue");
set_handler(ui_callback_type::MODAL, std::bind(&mame_ui_manager::handler_messagebox_anykey, this, _1));
messagebox_backcolor = machine_info().warnings_color();
}