mirror of
https://github.com/holub/mame
synced 2025-10-04 16:34:53 +03:00
ui/datmenu: fix in game menu data view (nw)
This commit is contained in:
parent
fa4b5bdee6
commit
0c0c086268
@ -36,13 +36,13 @@ function data.startplugin()
|
||||
end)
|
||||
emu.register_callback(function(set)
|
||||
local ret
|
||||
if set == "" then
|
||||
set = emu.romname()
|
||||
end
|
||||
if set == cur_set then
|
||||
return cur_list
|
||||
elseif set == "" then
|
||||
set = cur_set
|
||||
else
|
||||
cur_set = set
|
||||
end
|
||||
cur_set = set
|
||||
if not set then
|
||||
return nil
|
||||
end
|
||||
|
@ -45,7 +45,7 @@ menu_dats_view::menu_dats_view(mame_ui_manager &mui, render_container &container
|
||||
m_parent = image.software_entry()->parentname();
|
||||
}
|
||||
}
|
||||
const char *lua_list = mame_machine_manager::instance()->lua()->call_plugin(driver->name, "data_list");
|
||||
const char *lua_list = mame_machine_manager::instance()->lua()->call_plugin(driver ? driver->name : "", "data_list");
|
||||
if(lua_list)
|
||||
{
|
||||
std::string list(lua_list);
|
||||
|
Loading…
Reference in New Issue
Block a user