修复部分老版本超时空更新后进不去游戏的问题

This commit is contained in:
MrZ626
2020-12-07 13:38:50 +08:00
parent 0372fc18ee
commit 73e1dabe14
2 changed files with 10 additions and 4 deletions

View File

@@ -193,10 +193,16 @@ do
S.bgm>1 or S.sfx>1 or S.voc>1 or
S.stereo>1 or S.VKSFX>1 or S.VKAlpha>1
then
NOGAME="delSetting"
NOGAME=true
fs.remove("settings.dat")
end
if fs.getInfo("cold_clear.dll")then
NOGAME=true
fs.remove("cold_clear.dll")
fs.remove("CCloader.dll")
end
--Update data file
S=STAT
freshDate()

View File

@@ -22,9 +22,9 @@ end
function scene.mouseDown(_,_,k)
if k~=2 then
if NOGAME=="delSetting"then
LOG.print("检测到过老版本无效设置数据,设置已经全部重置,请重启游戏完成",600,COLOR.yellow)
LOG.print("Old version detected & setting file deleted, please restart the game",600,COLOR.yellow)
if NOGAME then
LOG.print("检测到大版本更新,请重启游戏完成",600,COLOR.yellow)
LOG.print("Old version detected & saving file changed, please restart the game",600,COLOR.yellow)
else
if newVersionLaunch then
SCN.push("main")