文件保存时一般不再弹出保存成功的消息

This commit is contained in:
MrZ626
2021-06-19 14:05:59 +08:00
parent 98715e4579
commit 4c95f6bfbc
10 changed files with 51 additions and 34 deletions

View File

@@ -275,7 +275,9 @@ function gameOver()--Save record
end
end
if needSave then
FILE.save(RANKS,'conf/unlock','q')
if FILE.save(RANKS,'conf/unlock')then
MES.new('check',text.saveDone)
end
end
end
local D=M.score(P)
@@ -294,7 +296,7 @@ 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,('record/%s.rec'):format(M.name),'lq')
FILE.save(L,('record/%s.rec'):format(M.name),'l')
end
end
end