修复检测第一次启动失败
This commit is contained in:
4
main.lua
4
main.lua
@@ -415,7 +415,6 @@ do
|
|||||||
local needSave
|
local needSave
|
||||||
|
|
||||||
if not fs.getInfo('conf/data')then
|
if not fs.getInfo('conf/data')then
|
||||||
FIRSTLAUNCH=true
|
|
||||||
needSave=true
|
needSave=true
|
||||||
end
|
end
|
||||||
if type(STAT.version)~='number'then
|
if type(STAT.version)~='number'then
|
||||||
@@ -559,7 +558,8 @@ do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--First start for phones
|
--First start
|
||||||
|
FIRSTLAUNCH=STAT.run==0
|
||||||
if FIRSTLAUNCH and MOBILE then
|
if FIRSTLAUNCH and MOBILE then
|
||||||
SETTING.VKSwitch=true
|
SETTING.VKSwitch=true
|
||||||
SETTING.powerInfo=true
|
SETTING.powerInfo=true
|
||||||
|
|||||||
Reference in New Issue
Block a user