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

@@ -1498,7 +1498,7 @@ end
--------------------------<Events>--------------------------
local function gameOver()--Save record
if GAME.replaying then return end
FILE.save(STAT,"data")
FILE.save(STAT,"conf/data")
local M=GAME.curMode
local R=M.getRank
if R then
@@ -1528,7 +1528,7 @@ local function gameOver()--Save record
end
end
if needSave then
FILE.save(RANKS,"unlock","q")
FILE.save(RANKS,"conf/unlock","q")
end
local D=M.score(P)
local L=M.records
@@ -1546,7 +1546,7 @@ local function gameOver()--Save record
D.date=os.date("%Y/%m/%d %H:%M")
ins(L,p+1,D)
if L[11]then L[11]=nil end
FILE.save(L,M.name,"l")
FILE.save(L,"record/"..M.name,"l")
end
end
end