mirror of
https://github.com/izzy2lost/mame.git
synced 2026-03-10 12:32:38 -07:00
-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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user