diff options
| author | 2018-05-02 09:37:34 -0500 | |
|---|---|---|
| committer | 2018-05-02 09:37:34 -0500 | |
| commit | fec83c922befa3f051af10c078b1fb58faf30777 (patch) | |
| tree | bfba2a01137647767ab1c136d120ace024fa24e6 /plugins/cheatfind | |
| parent | f5191c86057fe4c1486a0f7733af0e01ef4b00b5 (diff) | |
plugins: handle the case where the ui prepends the list name to the list entry name (nw)
Diffstat (limited to 'plugins/cheatfind')
| -rw-r--r-- | plugins/cheatfind/init.lua | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/plugins/cheatfind/init.lua b/plugins/cheatfind/init.lua index 57a6b6aad3e..25aac6768b3 100644 --- a/plugins/cheatfind/init.lua +++ b/plugins/cheatfind/init.lua @@ -730,9 +730,13 @@ function cheatfind.startplugin() menu_type = 1 local setname = emu.romname() if emu.softname() ~= "" then - for name, image in pairs(manager:machine().images) do - if image:exists() and image:software_list_name() ~= "" then - setname = image:software_list_name() .. "/" .. emu.softname() + if emu.softname():find(":") then + filename = emu.softname():gsub(":", "/") + else + for name, image in pairs(manager:machine().images) do + if image:exists() and image:software_list_name() ~= "" then + setname = image:software_list_name() .. "/" .. emu.softname() + end end end end |
