From 73e1dabe14000d3e69498ea3362ae054b3503dca Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 7 Dec 2020 13:38:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E8=80=81?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E8=B6=85=E6=97=B6=E7=A9=BA=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=90=8E=E8=BF=9B=E4=B8=8D=E5=8E=BB=E6=B8=B8=E6=88=8F=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.lua | 8 +++++++- parts/scenes/intro.lua | 6 +++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/main.lua b/main.lua index 4f67c95a..024ed6de 100644 --- a/main.lua +++ b/main.lua @@ -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() diff --git a/parts/scenes/intro.lua b/parts/scenes/intro.lua index 83b95eac..5ddb1c53 100644 --- a/parts/scenes/intro.lua +++ b/parts/scenes/intro.lua @@ -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")