diff options
author | 2016-04-23 10:52:45 -0500 | |
---|---|---|
committer | 2016-04-23 10:52:45 -0500 | |
commit | 21c89e625858cc8c902a0cb93a1da0721f44b7f6 (patch) | |
tree | f4ddef70d2fb1ee283832a28ecb0e1a787a3f0c7 /plugins/cheat/init.lua | |
parent | 8ade16979487afcd4a86d90f0c71921b09916116 (diff) |
luaengine: fix ui (nw)
Diffstat (limited to 'plugins/cheat/init.lua')
-rw-r--r-- | plugins/cheat/init.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/cheat/init.lua b/plugins/cheat/init.lua index b77ee97fc46..af8f7b0751f 100644 --- a/plugins/cheat/init.lua +++ b/plugins/cheat/init.lua @@ -73,8 +73,7 @@ function cheat.startplugin() local filename = emu.romname() local json = require("json") local newcheats = {} - local path = manager:machine():options().entries.cheatpath:value():gsub("([^;]+)", "%1;%1/cheat") - local file = emu.file(path, 1) + local file = emu.file(manager:machine():options().entries.cheatpath:value():gsub("([^;]+)", "%1;%1/cheat") , 1) if emu.softname() ~= "" then for name, image in pairs(manager:machine().images) do if image:exists() and image:software_list_name() ~= "" then @@ -116,7 +115,7 @@ function cheat.startplugin() return end if type(x) == "string" then - y = y * manager:machine():ui():get_line_height() + y = y * mame_manager:ui():get_line_height() end output[#output + 1] = { type = "text", scr = screen, x = x, y = y, str = str, color = color } end |