完全移除不再需要的聊天室场景代码,移除更新版本后自动跳转更新历史页面的功能

This commit is contained in:
MrZ626
2021-05-10 02:26:20 +08:00
parent 8893c7da3e
commit dd682a4e6a
11 changed files with 15 additions and 143 deletions

View File

@@ -147,24 +147,22 @@ local loadingThread=coroutine.wrap(function()
upFloor()
SKIN.change(SETTING.skinSet)
if newVersionLaunch then--Delete old ranks & Unlock modes which should be locked
for name,rank in next,RANKS do
local M=MODES[name]
if type(rank)~='number'then
RANKS[name]=nil
elseif M and M.unlock and rank>0 then
for _,unlockName in next,M.unlock do
if not RANKS[unlockName]then
RANKS[unlockName]=0
end
for name,rank in next,RANKS do
local M=MODES[name]
if type(rank)~='number'then
RANKS[name]=nil
elseif M and M.unlock and rank>0 then
for _,unlockName in next,M.unlock do
if not RANKS[unlockName]then
RANKS[unlockName]=0
end
end
if not(M and M.score)then
RANKS[name]=nil
end
end
FILE.save(RANKS,'conf/unlock','q')
if not(M and M.score)then
RANKS[name]=nil
end
end
FILE.save(RANKS,'conf/unlock','q')
DAILYLAUNCH=freshDate'q'
if DAILYLAUNCH then