diff options
author | 2020-07-10 00:22:58 +0200 | |
---|---|---|
committer | 2020-07-10 00:22:58 +0200 | |
commit | 4ee2f625bb1c3b52fce4be9a259200d4eb6a8d93 (patch) | |
tree | 34d6b82a701618accd409d38f80cd096b55050e5 /src/frontend/mame/ui/ui.cpp | |
parent | 890104f33d9685964174b343744a9c8b29b5bc51 (diff) |
ui: able to show emulation warnings from tab menu
Diffstat (limited to 'src/frontend/mame/ui/ui.cpp')
-rw-r--r-- | src/frontend/mame/ui/ui.cpp | 11 |
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(); } |