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