mirror of
https://github.com/holub/mame
synced 2025-10-06 00:54:22 +03:00
cleanup (nw)
This commit is contained in:
parent
1524406721
commit
c35df6ac55
@ -274,11 +274,24 @@ ui_manager* mame_machine_manager::create_ui(running_machine& machine)
|
|||||||
|
|
||||||
machine.add_notifier(MACHINE_NOTIFY_RESET, machine_notify_delegate(FUNC(mame_machine_manager::reset), this));
|
machine.add_notifier(MACHINE_NOTIFY_RESET, machine_notify_delegate(FUNC(mame_machine_manager::reset), this));
|
||||||
|
|
||||||
|
m_ui->set_startup_text("Initializing...", true);
|
||||||
|
|
||||||
|
return m_ui.get();
|
||||||
|
}
|
||||||
|
|
||||||
|
void mame_machine_manager::ui_initialize(running_machine& machine)
|
||||||
|
{
|
||||||
|
m_ui->initialize(machine);
|
||||||
|
|
||||||
|
// display the startup screens
|
||||||
|
m_ui->display_startup_screens(m_firstrun);
|
||||||
|
}
|
||||||
|
|
||||||
|
void mame_machine_manager::create_custom(running_machine& machine)
|
||||||
|
{
|
||||||
// start the inifile manager
|
// start the inifile manager
|
||||||
m_inifile = std::make_unique<inifile_manager>(machine, m_ui->options());
|
m_inifile = std::make_unique<inifile_manager>(machine, m_ui->options());
|
||||||
|
|
||||||
m_ui->set_startup_text("Initializing...", true);
|
|
||||||
|
|
||||||
// allocate autoboot timer
|
// allocate autoboot timer
|
||||||
m_autoboot_timer = machine.scheduler().timer_alloc(timer_expired_delegate(FUNC(mame_machine_manager::autoboot_callback), this));
|
m_autoboot_timer = machine.scheduler().timer_alloc(timer_expired_delegate(FUNC(mame_machine_manager::autoboot_callback), this));
|
||||||
|
|
||||||
@ -288,23 +301,10 @@ ui_manager* mame_machine_manager::create_ui(running_machine& machine)
|
|||||||
// start favorite manager
|
// start favorite manager
|
||||||
m_favorite = std::make_unique<favorite_manager>(machine, m_ui->options());
|
m_favorite = std::make_unique<favorite_manager>(machine, m_ui->options());
|
||||||
|
|
||||||
return m_ui.get();
|
|
||||||
}
|
|
||||||
|
|
||||||
void mame_machine_manager::create_custom(running_machine& machine)
|
|
||||||
{
|
|
||||||
// set up the cheat engine
|
// set up the cheat engine
|
||||||
m_cheat = std::make_unique<cheat_manager>(machine);
|
m_cheat = std::make_unique<cheat_manager>(machine);
|
||||||
}
|
}
|
||||||
|
|
||||||
void mame_machine_manager::ui_initialize(running_machine& machine)
|
|
||||||
{
|
|
||||||
m_ui->initialize(machine);
|
|
||||||
|
|
||||||
// display the startup screens
|
|
||||||
m_ui->display_startup_screens(m_firstrun);
|
|
||||||
}
|
|
||||||
|
|
||||||
const char * emulator_info::get_bare_build_version() { return bare_build_version; }
|
const char * emulator_info::get_bare_build_version() { return bare_build_version; }
|
||||||
const char * emulator_info::get_build_version() { return build_version; }
|
const char * emulator_info::get_build_version() { return build_version; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user