diff options
| author | 2016-11-02 12:14:39 -0500 | |
|---|---|---|
| committer | 2016-11-02 12:16:10 -0500 | |
| commit | bfc49b0974e4d040122dc8e546992d0ebdc418aa (patch) | |
| tree | 14384314d7a5dc49aedbdf11d7e9c1b4270f9ad4 /plugins/cheatfind | |
| parent | 431f8d361140dff4b2990a0845d8958281c90162 (diff) | |
luaengine: bugfixes (nw)
Diffstat (limited to 'plugins/cheatfind')
| -rw-r--r-- | plugins/cheatfind/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/cheatfind/init.lua b/plugins/cheatfind/init.lua index 5649113b265..5b52062a80b 100644 --- a/plugins/cheatfind/init.lua +++ b/plugins/cheatfind/init.lua @@ -52,7 +52,7 @@ function cheatfind.startplugin() -- save data block function cheat.save(space, start, size) local data = { block = "", start = start, size = size, space = space } - if space.shortname then + if getmetatable(space).__name:match("device_t") then if space:shortname() == "ram" then data.block = emu.item(space.items["0/m_pointer"]):read_block(start, size) if not data.block then |
