summaryrefslogtreecommitdiffstatshomepage
path: root/plugins
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2021-03-06 18:55:44 -0600
committer cracyc <cracyc@users.noreply.github.com>2021-03-06 18:55:44 -0600
commit5b489ca47564db981c0f82e2892ffc16638a6c4b (patch)
tree0413c47749396f276ae02a9a69d0b5debc99fae3 /plugins
parente98378352d5cae233044002edf5093dc4dd7e642 (diff)
plugins: fix missed lua api changes
Diffstat (limited to 'plugins')
-rw-r--r--plugins/cheat/init.lua2
-rw-r--r--plugins/portname/init.lua4
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/cheat/init.lua b/plugins/cheat/init.lua
index 4b409d1e029..be2cdf2600c 100644
--- a/plugins/cheat/init.lua
+++ b/plugins/cheat/init.lua
@@ -100,7 +100,7 @@ function cheat.startplugin()
filename = emu.softname():gsub(":", "/")
else
for name, image in pairs(manager.machine.images) do
- if image:exists() and image:software_list_name() ~= "" then
+ if image.exists and image:software_list_name() ~= "" then
filename = image:software_list_name() .. "/" .. emu.softname()
end
end
diff --git a/plugins/portname/init.lua b/plugins/portname/init.lua
index 7103f138e76..24cdc50facf 100644
--- a/plugins/portname/init.lua
+++ b/plugins/portname/init.lua
@@ -78,11 +78,11 @@ function portname.startplugin()
local parent
for tag, image in pairs(manager.machine.images) do
parent = image.software_parent
- if parent ~= "" then
+ if parent then
break
end
end
- if parent ~= "" then
+ if parent then
ret = file:open(emu.romname() .. "_" .. parent:match("([^:]*)$") .. ".json")
end
end