整理代码,移除多余的保存成功提示
This commit is contained in:
@@ -275,9 +275,7 @@ function gameOver()--Save record
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
if needSave then
|
if needSave then
|
||||||
if FILE.save(RANKS,'conf/unlock')then
|
FILE.save(RANKS,'conf/unlock')
|
||||||
MES.new('check',text.saveDone)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local D=M.score(P)
|
local D=M.score(P)
|
||||||
|
|||||||
@@ -289,7 +289,6 @@ function NET.loadSavedData(sections)
|
|||||||
if success then
|
if success then
|
||||||
MES.new('check',text.saveDone)
|
MES.new('check',text.saveDone)
|
||||||
end
|
end
|
||||||
MES.new('check',text.saveDone)
|
|
||||||
else
|
else
|
||||||
MES.new('error',text.versionNotMatch,1)
|
MES.new('error',text.versionNotMatch,1)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -12,13 +12,9 @@ local function login()
|
|||||||
end
|
end
|
||||||
NET.wsconn_user_pswd(email,password)
|
NET.wsconn_user_pswd(email,password)
|
||||||
if savePW then
|
if savePW then
|
||||||
if FILE.save({email,password},'conf/account')then
|
FILE.save({email,password},'conf/account')
|
||||||
MES.new('check',text.saveDone)
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
if love.filesystem.getInfo('conf/account')then
|
love.filesystem.remove('conf/account')
|
||||||
love.filesystem.remove('conf/account')
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user