diff options
author | 2020-09-13 10:00:00 -0500 | |
---|---|---|
committer | 2020-09-13 10:00:54 -0500 | |
commit | 9c4d1457dad0e82860d45c76cee04aa8d33a13c4 (patch) | |
tree | e7e692c51f563389dbcd99577e8fd89f5c892f5d /plugins/cheatfind/init.lua | |
parent | 9b582574922cb7af1a9a31c1182c300b90a20c43 (diff) |
plugins: add emu.plugin table to contain plugin exported interfaces
Diffstat (limited to 'plugins/cheatfind/init.lua')
-rw-r--r-- | plugins/cheatfind/init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/cheatfind/init.lua b/plugins/cheatfind/init.lua index 62b11e8970f..729aed26cb0 100644 --- a/plugins/cheatfind/init.lua +++ b/plugins/cheatfind/init.lua @@ -251,7 +251,7 @@ function cheatfind.startplugin() return cheat.compnext(newdata, olddata, oldmatch, oper, format, val, bcd, step) end - _G.cf = cheat + _G.emu.plugin.cheatfind = cheat local devtable = {} local devsel = 1 local devcur = 1 @@ -937,10 +937,10 @@ function cheatfind.startplugin() cheat.script.run = "cpu:write_" .. wid .. "(" .. match.addr .. "," .. pokevalue .. ")" end if match.mode == 1 then - if not _G.ce then + if not emu.plugin.cheat then manager:machine():popmessage(_("Cheat engine not available")) else - _G.ce.inject(cheat) + emu.plugin.cheat.inject(cheat) end elseif match.mode == 2 then cheat_save = {} |