FILE模块修改,并将所有文件分类整理方便未来调整

This commit is contained in:
MrZ626
2020-12-13 23:38:06 +08:00
parent fdbbdfea05
commit d5dcc78acd
15 changed files with 52 additions and 29 deletions

View File

@@ -1,7 +1,6 @@
local fs=love.filesystem
local FILE={}
function FILE.load(name)
name=name..".dat"
local F=fs.newFile(name)
if F:open("r")then
local s=F:read()
@@ -28,7 +27,7 @@ function FILE.load(name)
end
function FILE.save(data,name,mode)
if not mode then mode=""end
name=name..".dat"
name=name
if mode:find("l")then
data=dumpTable(data)
if not data then