mirror of
https://github.com/holub/mame
synced 2025-06-01 02:21:48 +03:00
prevent crashing if there is interface defined but no actual softlist hooked (no whatsnew)
This commit is contained in:
parent
03b1554443
commit
d3ee009519
@ -329,7 +329,7 @@ void ui_menu_software::populate()
|
|||||||
{
|
{
|
||||||
const software_list *list = software_list_open(machine().options(), swlist->list_name(), false, NULL);
|
const software_list *list = software_list_open(machine().options(), swlist->list_name(), false, NULL);
|
||||||
|
|
||||||
if (list)
|
if (list && interface)
|
||||||
{
|
{
|
||||||
bool found = false;
|
bool found = false;
|
||||||
for (const software_info *swinfo = software_list_find(list, "*", NULL); swinfo != NULL; swinfo = software_list_find(list, "*", swinfo))
|
for (const software_info *swinfo = software_list_find(list, "*", NULL); swinfo != NULL; swinfo = software_list_find(list, "*", swinfo))
|
||||||
@ -355,7 +355,7 @@ void ui_menu_software::populate()
|
|||||||
{
|
{
|
||||||
const software_list *list = software_list_open(machine().options(), swlist->list_name(), false, NULL);
|
const software_list *list = software_list_open(machine().options(), swlist->list_name(), false, NULL);
|
||||||
|
|
||||||
if (list)
|
if (list && interface)
|
||||||
{
|
{
|
||||||
bool found = false;
|
bool found = false;
|
||||||
for (const software_info *swinfo = software_list_find(list, "*", NULL); swinfo != NULL; swinfo = software_list_find(list, "*", swinfo))
|
for (const software_info *swinfo = software_list_find(list, "*", NULL); swinfo != NULL; swinfo = software_list_find(list, "*", swinfo))
|
||||||
|
Loading…
Reference in New Issue
Block a user