From cca53b63767af4ae78f3ad73d759469ba4221373 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Tue, 3 Aug 2021 01:57:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AC=A1=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E4=BC=9A=E8=87=AA=E5=8A=A8=E8=BF=9B=E5=85=A5=E8=AF=AD=E8=A8=80?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E8=8F=9C=E5=8D=95=20close=20#150?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.lua | 5 +++++ parts/scenes/load.lua | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/main.lua b/main.lua index 0a3115a7..6ca7aaf3 100644 --- a/main.lua +++ b/main.lua @@ -27,6 +27,7 @@ MOBILE=SYSTEM=='Android'or SYSTEM=='iOS' SAVEDIR=fs.getSaveDirectory() --Global Vars & Settings +FIRSTLAUNCH=false DAILYLAUNCH=false --System setting @@ -265,6 +266,10 @@ end do local needSave + if not fs.getInfo('conf/data')then + FIRSTLAUNCH=true + needSave=true + end if type(STAT.version)~='number'then STAT.version=0 needSave=true diff --git a/parts/scenes/load.lua b/parts/scenes/load.lua index c98079cf..1a73b3a8 100644 --- a/parts/scenes/load.lua +++ b/parts/scenes/load.lua @@ -144,7 +144,12 @@ end function scene.mouseDown() if LOADED then - SCN.swapTo(SETTING.simpMode and'main_simple'or'main') + if FIRSTLAUNCH then + SCN.push('main') + SCN.swapTo('lang') + else + SCN.swapTo(SETTING.simpMode and'main_simple'or'main') + end end end scene.touchDown=scene.mouseDown