diff options
author | 2020-12-16 02:18:52 +1100 | |
---|---|---|
committer | 2020-12-16 02:18:52 +1100 | |
commit | 503332a9867f9aa27fc77cd9e762626d22d213ef (patch) | |
tree | e60fba6664a3d980d5f62846982bde381a25c3f7 /plugins/cheatfind/init.lua | |
parent | b5f78fe38358b68fc54416328f764cf4e2bf3333 (diff) |
-Lua cleanup and documentation migration checkpoint.
* Cleaned up some more of the Lua inteface. Mostly replacing methods
with properties, some consistency fixes, a few renames, some more
exposed functionality, and a couple of properties that have no
business being set from scripts made read-only.
* Moved a lot more Lua documentation out of source comments into the
documentation, and expanded on it in the process.
* Got more UI code out of the input manager.
* Changed input sequence poller to a polymorphic class where you
specify your intention upfront.
* Changed the cheat plugin to use UI Clear to clear hotkey assignments
and leave them unchanged if the user starts assignment but doesn't
press any switches.
* Ported AJR's fix for over-eager double-click recognition from SDL to
Windows OSD.
-goldnpkr.cpp: Cleaned up inputs, using standard keyout and payout types
and key assignments.
Diffstat (limited to 'plugins/cheatfind/init.lua')
-rw-r--r-- | plugins/cheatfind/init.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/cheatfind/init.lua b/plugins/cheatfind/init.lua index e540fe59fe6..1a3be72d9bc 100644 --- a/plugins/cheatfind/init.lua +++ b/plugins/cheatfind/init.lua @@ -302,9 +302,11 @@ function cheatfind.startplugin() for tag, list in pairs(space_table) do for name, space in pairs(list) do local ram = {} - for num, entry in pairs(space.map) do - if entry.writetype == "ram" then - ram[#ram + 1] = { offset = entry.offset, size = entry.endoff - entry.offset } + for num, entry in pairs(space.map.entries) do + if entry.write.handlertype == "ram" then + ram[#ram + 1] = { + offset = entry.address_start & space.address_mask, + size = (entry.address_end & space.address_mask) - (entry.address_start & space.address_mask) } if space.shift > 0 then ram[#ram].size = ram[#ram].size >> space.shift elseif space.shift < 0 then |