整理全局函数名以及库的require方法

This commit is contained in:
MrZ626
2021-03-05 01:15:09 +08:00
parent 069b547e58
commit b1ca2c8dda
99 changed files with 135 additions and 132 deletions

View File

@@ -13,7 +13,7 @@ function FILE.load(name)
return s()
end
else
local res=json.decode(s)
local res=JSON.decode(s)
if res then
return res
end
@@ -26,13 +26,13 @@ function FILE.save(data,name,mode)
if not mode then mode=""end
name=name
if mode:find("l")then
data=dumpTable(data)
data=DUMPTABLE(data)
if not data then
LOG.print(name.." "..text.saveError.."dump error","error")
return
end
else
data=json.encode(data)
data=JSON.encode(data)
if not data then
LOG.print(name.." "..text.saveError.."json error","error")
return