summaryrefslogtreecommitdiffstatshomepage
path: root/plugins
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-09-26 04:46:55 +1000
committer Vas Crabb <vas@vastheman.com>2016-09-26 04:51:59 +1000
commit33b2c733955112083b2912d4115eb0465026b4d0 (patch)
treefbbf0f355577aaf9a18dfa5ce269615ed5e70bec /plugins
parentfbbc293041838bf6007c439c57745f79b2c8d4fb (diff)
srcclean (nw)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/data/data_hiscore.lua8
-rw-r--r--plugins/data/load_dat.lua4
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/data/data_hiscore.lua b/plugins/data/data_hiscore.lua
index 5f1a0f70521..3e46fabe50a 100644
--- a/plugins/data/data_hiscore.lua
+++ b/plugins/data/data_hiscore.lua
@@ -515,7 +515,7 @@ function dat.check(set, softlist)
dat[#dat + 1] = check_format(col["format"])
dat[#dat + 1] = "val = tempform(val)"
end
- if igncol == col["id"] then
+ if igncol == col["id"] then
dat[#dat + 1] = "checkval = val"
end
dat[#dat + 1] = "line = line .. val .. '\\t'"
@@ -546,7 +546,7 @@ function dat.check(set, softlist)
end
return script
end
-
+
if #env == 0 then
function env.open(file, size)
if file == ".hi" then
@@ -765,7 +765,7 @@ function dat.check(set, softlist)
local scrfile = emu.file(lfs.env_replace(mame_manager:ui():options().entries.historypath:value():gsub("([^;]+)", "%1/hi2txt")), 1)
local ret = scrfile:open(set .. ".lua")
local script
- if ret then
+ if ret then
local xml = xml_parse()
if not xml then
return nil
@@ -787,7 +787,7 @@ function dat.check(set, softlist)
if not status then
emu.print_verbose("error in hi score parse script: " .. output)
output = nil
- end
+ end
end
if output then
return "High Scores"
diff --git a/plugins/data/load_dat.lua b/plugins/data/load_dat.lua
index 72956a8becb..e6d0c5d63b8 100644
--- a/plugins/data/load_dat.lua
+++ b/plugins/data/load_dat.lua
@@ -55,7 +55,7 @@ function datfile.open(file, vertag)
set:gsub("([^,]+)", function(s) sets[#sets + 1] = s end)
repeat
tag1, epos = iter()
- until tag1:sub(1, 1) == "$"
+ until tag1:sub(1, 1) == "$"
tag1 = tag1:match("^$([^%s]*)")
if not data[tag1] then
data[tag1] = {}
@@ -94,4 +94,4 @@ function datfile.open(file, vertag)
return read, ver
end
-return datfile
+return datfile