前推版本适配代码,更新版本号
This commit is contained in:
6
conf.lua
6
conf.lua
@@ -1,7 +1,7 @@
|
|||||||
VERSION={
|
VERSION={
|
||||||
code=1408,
|
code=1409,
|
||||||
string="Alpha V0.14.8",
|
string="Alpha V0.14.9",
|
||||||
name="冰激凌 Icecream",
|
name="下午茶 Teatime",
|
||||||
}
|
}
|
||||||
function love.conf(t)
|
function love.conf(t)
|
||||||
t.identity='Techmino'--Saving folder
|
t.identity='Techmino'--Saving folder
|
||||||
|
|||||||
10
main.lua
10
main.lua
@@ -247,7 +247,7 @@ do
|
|||||||
STAT.version=0
|
STAT.version=0
|
||||||
needSave=true
|
needSave=true
|
||||||
end
|
end
|
||||||
if STAT.version<1300 then
|
if STAT.version<1302 then
|
||||||
STAT.frame=math.floor(STAT.time*60)
|
STAT.frame=math.floor(STAT.time*60)
|
||||||
STAT.lastPlay='sprint_10l'
|
STAT.lastPlay='sprint_10l'
|
||||||
RANKS.sprintFix=nil
|
RANKS.sprintFix=nil
|
||||||
@@ -256,24 +256,18 @@ do
|
|||||||
for _,name in next,fs.getDirectoryItems("replay")do
|
for _,name in next,fs.getDirectoryItems("replay")do
|
||||||
fs.remove("replay/"..name)
|
fs.remove("replay/"..name)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
if STAT.version<1302 then
|
|
||||||
if RANKS.pctrain_n then RANKS.pctrain_n=0 end
|
if RANKS.pctrain_n then RANKS.pctrain_n=0 end
|
||||||
if RANKS.pctrain_l then RANKS.pctrain_l=0 end
|
if RANKS.pctrain_l then RANKS.pctrain_l=0 end
|
||||||
fs.remove("conf/settings")
|
fs.remove("conf/settings")
|
||||||
needSave=true
|
needSave=true
|
||||||
autoRestart=true
|
autoRestart=true
|
||||||
end
|
end
|
||||||
if STAT.version<1400 then
|
if STAT.version<1405 then
|
||||||
fs.remove("conf/user")
|
fs.remove("conf/user")
|
||||||
fs.remove("conf/key")
|
fs.remove("conf/key")
|
||||||
needSave=true
|
needSave=true
|
||||||
autoRestart=true
|
autoRestart=true
|
||||||
end
|
end
|
||||||
if STAT.version<1405 then
|
|
||||||
fs.remove("conf/user")
|
|
||||||
autoRestart=true
|
|
||||||
end
|
|
||||||
if not TABLE.find({8,10,13,17,22,29,37,47,62,80,100},SETTING.frameMul)then
|
if not TABLE.find({8,10,13,17,22,29,37,47,62,80,100},SETTING.frameMul)then
|
||||||
SETTING.frameMul=100
|
SETTING.frameMul=100
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user