summaryrefslogtreecommitdiffstatshomepage
path: root/plugins
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2017-08-27 11:07:21 +1000
committer Vas Crabb <vas@vastheman.com>2017-08-27 11:07:21 +1000
commitec3caa98bdcab04b0cb90b3cf1c1eb740433dfd6 (patch)
tree337a198314bc8532025a9a1107430de7aafc1388 /plugins
parentd969bebe1a47abe407c3ab280227213856b257bd (diff)
srcclean (nw)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/cheat/init.lua8
-rw-r--r--plugins/data/data_marp.lua4
-rw-r--r--plugins/gdbstub/init.lua2
3 files changed, 7 insertions, 7 deletions
diff --git a/plugins/cheat/init.lua b/plugins/cheat/init.lua
index 914a0e631cb..70a09e8c690 100644
--- a/plugins/cheat/init.lua
+++ b/plugins/cheat/init.lua
@@ -15,8 +15,8 @@
-- ... ]
-- },
-- "cpu": {
--- "varname": "tag"
--- ...
+-- "varname": "tag"
+-- ...
-- }
-- "space": {
-- "varname": {
@@ -57,7 +57,7 @@
-- - output is a function and argindex isn't supported, output args need to be explicit and a screen device
-- must be provided
-- - cpu is only used for break and watch points, if it is defined and the debugger is not enabled (-debugger none is enough)
--- it will disable the cheat only if a point is set, check var for nil first
+-- it will disable the cheat only if a point is set, check var for nil first
-- - watch points require the address space that you want to set the watch on, wptype is "r"-read, "w"-write or "rw"-both
local exports = {}
@@ -363,7 +363,7 @@ function cheat.startplugin()
end
cheat.cheat_env[name] = {
bpset = function(addr, func) bpset(cheat, dev, addr, func) end,
- wpset = function(space, wptype, addr, len, func) wpset(cheat, dev, space, wptype, addr, len, func) end,
+ wpset = function(space, wptype, addr, len, func) wpset(cheat, dev, space, wptype, addr, len, func) end,
regs = dev.state }
cheat.bp = {}
cheat.wp = {}
diff --git a/plugins/data/data_marp.lua b/plugins/data/data_marp.lua
index 959bdcbbfe9..9009a76d241 100644
--- a/plugins/data/data_marp.lua
+++ b/plugins/data/data_marp.lua
@@ -1,7 +1,7 @@
-- get marp high score file from http://replay.marpirc.net/txt/scores3.htm
local dat = {}
local db, sql = require("data/database")()
-local ver, info
+local ver, info
local function init()
local filepath
@@ -27,7 +27,7 @@ local function init()
if not fh and dbver then
-- data in database but missing file, just use what we have
ver = dbver
- return
+ return
elseif not fh then
return
elseif not dbver then
diff --git a/plugins/gdbstub/init.lua b/plugins/gdbstub/init.lua
index f463d816a35..e34b0dcfb5d 100644
--- a/plugins/gdbstub/init.lua
+++ b/plugins/gdbstub/init.lua
@@ -156,7 +156,7 @@ function gdbstub.startplugin()
if cmd == "g" then
local regs = {}
for reg, idx in pairs(map.togdb) do
- regs[idx] = makebestr(cpu.state[reg].value, map.regsize)
+ regs[idx] = makebestr(cpu.state[reg].value, map.regsize)
end
local data = table.concat(regs)
socket:write("+$" .. data .. "#" .. chksum(data))