summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/gdbstub/init.lua
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2020-12-16 02:18:52 +1100
committer Vas Crabb <vas@vastheman.com>2020-12-16 02:18:52 +1100
commit503332a9867f9aa27fc77cd9e762626d22d213ef (patch)
treee60fba6664a3d980d5f62846982bde381a25c3f7 /plugins/gdbstub/init.lua
parentb5f78fe38358b68fc54416328f764cf4e2bf3333 (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/gdbstub/init.lua')
-rw-r--r--plugins/gdbstub/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/gdbstub/init.lua b/plugins/gdbstub/init.lua
index f2292bc0027..e850e62ae5b 100644
--- a/plugins/gdbstub/init.lua
+++ b/plugins/gdbstub/init.lua
@@ -175,7 +175,7 @@ function gdbstub.startplugin()
local data = ""
local space = cpu.spaces["program"]
for count = 1, len do
- data = data .. string.format("%.2x", space:read_log_u8(addr))
+ data = data .. string.format("%.2x", space:readv_u8(addr))
addr = addr + 1
end
socket:write("+$" .. data .. "#" .. chksum(data))
@@ -188,7 +188,7 @@ function gdbstub.startplugin()
if addr and len and data then
addr = tonumber(addr, 16)
local space = cpu.spaces["program"]
- data:gsub("%x%x", function(s) space:write_log_u8(addr + count, tonumber(s, 16)) count = count + 1 end)
+ data:gsub("%x%x", function(s) space:writev_u8(addr + count, tonumber(s, 16)) count = count + 1 end)
socket:write("+$OK#9a")
else
socket:write("+$E00#a5")