summaryrefslogtreecommitdiffstats
path: root/plugins/gdbstub/init.lua
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2020-12-27 01:32:37 +1100
committer Vas Crabb <vas@vastheman.com>2020-12-27 01:32:37 +1100
commit9e36b6a6d951ea6f2d72cab874c3c8e72d001001 (patch)
treec41bfd0c1b499d790c4091eb266caf6955219fc1 /plugins/gdbstub/init.lua
parent509c946736b5f02cac84d19f2cde4e966d637a2c (diff)
More Lua interface cleanup - it's simpler with cleaner underlyng APIs.
Made the sound manager mute controls readable, and got rid of system enable since it just controls system mute anyway. This was causing confusion: phantom2 was trying to use both independentlyt casuing the mute bit to be ignored. THe Lua interface changes are mostly changing methods to properties, some renames to make things clearer, and some additional properties for better control over snapshots.
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 afc5428dd22..f7d4ceee6ba 100644
--- a/plugins/gdbstub/init.lua
+++ b/plugins/gdbstub/init.lua
@@ -36,12 +36,12 @@ function gdbstub.startplugin()
local running
emu.register_start(function ()
- debugger = manager:machine():debugger()
+ debugger = manager.machine.debugger
if not debugger then
print("gdbstub: debugger not enabled")
return
end
- cpu = manager:machine().devices[":maincpu"]
+ cpu = manager.machine.devices[":maincpu"]
if not cpu then
print("gdbstub: maincpu not found")
end