修复部分老版本超时空更新后进不去游戏的问题
This commit is contained in:
8
main.lua
8
main.lua
@@ -193,10 +193,16 @@ do
|
|||||||
S.bgm>1 or S.sfx>1 or S.voc>1 or
|
S.bgm>1 or S.sfx>1 or S.voc>1 or
|
||||||
S.stereo>1 or S.VKSFX>1 or S.VKAlpha>1
|
S.stereo>1 or S.VKSFX>1 or S.VKAlpha>1
|
||||||
then
|
then
|
||||||
NOGAME="delSetting"
|
NOGAME=true
|
||||||
fs.remove("settings.dat")
|
fs.remove("settings.dat")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if fs.getInfo("cold_clear.dll")then
|
||||||
|
NOGAME=true
|
||||||
|
fs.remove("cold_clear.dll")
|
||||||
|
fs.remove("CCloader.dll")
|
||||||
|
end
|
||||||
|
|
||||||
--Update data file
|
--Update data file
|
||||||
S=STAT
|
S=STAT
|
||||||
freshDate()
|
freshDate()
|
||||||
|
|||||||
@@ -22,9 +22,9 @@ end
|
|||||||
|
|
||||||
function scene.mouseDown(_,_,k)
|
function scene.mouseDown(_,_,k)
|
||||||
if k~=2 then
|
if k~=2 then
|
||||||
if NOGAME=="delSetting"then
|
if NOGAME then
|
||||||
LOG.print("检测到过老版本无效设置数据,设置已经全部重置,请重启游戏完成",600,COLOR.yellow)
|
LOG.print("检测到大版本更新,请重启游戏完成",600,COLOR.yellow)
|
||||||
LOG.print("Old version detected & setting file deleted, please restart the game",600,COLOR.yellow)
|
LOG.print("Old version detected & saving file changed, please restart the game",600,COLOR.yellow)
|
||||||
else
|
else
|
||||||
if newVersionLaunch then
|
if newVersionLaunch then
|
||||||
SCN.push("main")
|
SCN.push("main")
|
||||||
|
|||||||
Reference in New Issue
Block a user