mirror of
https://github.com/holub/mame
synced 2025-06-25 22:04:15 +03:00
Better fix for init order on software item load (nw)
This commit is contained in:
parent
35dee95edf
commit
a4dd32afb6
@ -132,7 +132,6 @@ void ui_menu_control_device_image::test_create(bool &can_create, bool &need_conf
|
||||
void ui_menu_control_device_image::load_software_part()
|
||||
{
|
||||
astring temp_name(sld->list_name(), ":", swi->shortname(), ":", swp->name());
|
||||
image->set_init_phase();
|
||||
hook_load(temp_name, true);
|
||||
}
|
||||
|
||||
@ -143,6 +142,7 @@ void ui_menu_control_device_image::load_software_part()
|
||||
|
||||
void ui_menu_control_device_image::hook_load(astring name, bool softlist)
|
||||
{
|
||||
if (image->is_reset_on_load()) image->set_init_phase();
|
||||
image->load(name);
|
||||
ui_menu::stack_pop(machine());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user