summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/mame.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2019-01-14 04:55:29 +1100
committer Vas Crabb <vas@vastheman.com>2019-01-15 03:56:30 +1100
commitae727d2cc640fef650d6c76694b83b159d3065ba (patch)
treec1c5b58eb3a9d51a43737dca62a59b482f7245f2 /src/frontend/mame/mame.cpp
parent8f330896e2f8b1fc8ec54023fb5d134dc8a5c3d3 (diff)
UI cleanup continues:
* Fix crash on builds with fewer than 16 drivers * Fix "available" filter in internal UI * Get rid of some UI globals that shouldn't be global * Better encapsulation in UI * Clean up favourites manager - in particular kill hidden state and O(n) walks * This breaks adding systems/software to favourites from the main tab menu
Diffstat (limited to 'src/frontend/mame/mame.cpp')
-rw-r--r--src/frontend/mame/mame.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/mame/mame.cpp b/src/frontend/mame/mame.cpp
index e1eb535ea68..f3c08f661e9 100644
--- a/src/frontend/mame/mame.cpp
+++ b/src/frontend/mame/mame.cpp
@@ -304,13 +304,13 @@ void mame_machine_manager::ui_initialize(running_machine& machine)
void mame_machine_manager::create_custom(running_machine& machine)
{
// start the inifile manager
- m_inifile = std::make_unique<inifile_manager>(machine, m_ui->options());
+ m_inifile = std::make_unique<inifile_manager>(m_ui->options());
// allocate autoboot timer
m_autoboot_timer = machine.scheduler().timer_alloc(timer_expired_delegate(FUNC(mame_machine_manager::autoboot_callback), this));
// start favorite manager
- m_favorite = std::make_unique<favorite_manager>(machine, m_ui->options());
+ m_favorite = std::make_unique<favorite_manager>(m_ui->options());
}
void mame_machine_manager::load_cheatfiles(running_machine& machine)