mirror of
https://github.com/holub/mame
synced 2025-07-04 01:18:59 +03:00
selsoft: fixed failure to load software from the BIOS menu selection. (nw)
This commit is contained in:
parent
5b549a4fe0
commit
b7bbfe1897
@ -2040,7 +2040,7 @@ void ui_bios_selection::handle()
|
|||||||
{
|
{
|
||||||
// process the menu
|
// process the menu
|
||||||
const ui_menu_event *event = process(0);
|
const ui_menu_event *event = process(0);
|
||||||
ui_options &moptions = machine().ui().options();
|
emu_options &moptions = machine().options();
|
||||||
if (event != nullptr && event->iptkey == IPT_UI_SELECT && event->itemref != nullptr)
|
if (event != nullptr && event->iptkey == IPT_UI_SELECT && event->itemref != nullptr)
|
||||||
for (auto & elem : m_bios)
|
for (auto & elem : m_bios)
|
||||||
if ((void*)&elem.name == event->itemref)
|
if ((void*)&elem.name == event->itemref)
|
||||||
@ -2073,7 +2073,7 @@ void ui_bios_selection::handle()
|
|||||||
drivlist.next();
|
drivlist.next();
|
||||||
software_list_device *swlist = software_list_device::find_by_name(drivlist.config(), ui_swinfo->listname.c_str());
|
software_list_device *swlist = software_list_device::find_by_name(drivlist.config(), ui_swinfo->listname.c_str());
|
||||||
software_info *swinfo = swlist->find(ui_swinfo->shortname.c_str());
|
software_info *swinfo = swlist->find(ui_swinfo->shortname.c_str());
|
||||||
if (!moptions.skip_parts_menu() && swinfo->has_multiple_parts(ui_swinfo->interface.c_str()))
|
if (!machine().ui().options().skip_parts_menu() && swinfo->has_multiple_parts(ui_swinfo->interface.c_str()))
|
||||||
{
|
{
|
||||||
std::unordered_map<std::string, std::string> parts;
|
std::unordered_map<std::string, std::string> parts;
|
||||||
for (const software_part *swpart = swinfo->first_part(); swpart != nullptr; swpart = swpart->next())
|
for (const software_part *swpart = swinfo->first_part(); swpart != nullptr; swpart = swpart->next())
|
||||||
|
Loading…
Reference in New Issue
Block a user