整理代码
This commit is contained in:
7
main.lua
7
main.lua
@@ -239,7 +239,7 @@ end
|
|||||||
|
|
||||||
--Update data
|
--Update data
|
||||||
do
|
do
|
||||||
local needSave,autoRestart
|
local needSave
|
||||||
|
|
||||||
if type(STAT.version)~='number'then
|
if type(STAT.version)~='number'then
|
||||||
STAT.version=0
|
STAT.version=0
|
||||||
@@ -259,7 +259,7 @@ do
|
|||||||
if STAT.version~=VERSION.code then
|
if STAT.version~=VERSION.code then
|
||||||
STAT.version=VERSION.code
|
STAT.version=VERSION.code
|
||||||
needSave=true
|
needSave=true
|
||||||
autoRestart=true
|
love.event.quit('restart')
|
||||||
end
|
end
|
||||||
if SETTING.ghostType=='greyCell'then
|
if SETTING.ghostType=='greyCell'then
|
||||||
SETTING.ghostType='grayCell'
|
SETTING.ghostType='grayCell'
|
||||||
@@ -305,9 +305,6 @@ do
|
|||||||
FILE.save(RANKS,'conf/unlock')
|
FILE.save(RANKS,'conf/unlock')
|
||||||
FILE.save(STAT,'conf/data')
|
FILE.save(STAT,'conf/data')
|
||||||
end
|
end
|
||||||
if autoRestart then
|
|
||||||
love.event.quit('restart')
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
--Apply system setting
|
--Apply system setting
|
||||||
|
|||||||
Reference in New Issue
Block a user