修复每次启动游戏统计信息的消除信息必定丢失
This commit is contained in:
@@ -304,20 +304,25 @@ SETTING={--Settings
|
|||||||
VKIcon=true,--If disp icon
|
VKIcon=true,--If disp icon
|
||||||
VKAlpha=.3,
|
VKAlpha=.3,
|
||||||
}local S=FILE.load("conf/settings")if S then addToTable(S,SETTING)end
|
}local S=FILE.load("conf/settings")if S then addToTable(S,SETTING)end
|
||||||
STAT=FILE.load("conf/data")or{--Statistics
|
S=FILE.load("conf/data")
|
||||||
version=VERSION_CODE,
|
if S then--Statistics
|
||||||
run=0,game=0,time=0,frame=0,
|
STAT=S
|
||||||
key=0,rotate=0,hold=0,
|
else
|
||||||
extraPiece=0,finesseRate=0,
|
STAT={
|
||||||
piece=0,row=0,dig=0,
|
version=VERSION_CODE,
|
||||||
atk=0,digatk=0,
|
run=0,game=0,time=0,frame=0,
|
||||||
send=0,recv=0,pend=0,off=0,
|
key=0,rotate=0,hold=0,
|
||||||
clear={},spin={},
|
extraPiece=0,finesseRate=0,
|
||||||
pc=0,hpc=0,b2b=0,b3b=0,score=0,
|
piece=0,row=0,dig=0,
|
||||||
lastPlay="sprint_10",--Last played mode ID
|
atk=0,digatk=0,
|
||||||
date=nil,
|
send=0,recv=0,pend=0,off=0,
|
||||||
todayTime=0,
|
clear={},spin={},
|
||||||
}for i=1,25 do STAT.clear[i]={0,0,0,0,0,0}STAT.spin[i]={0,0,0,0,0,0,0}end
|
pc=0,hpc=0,b2b=0,b3b=0,score=0,
|
||||||
|
lastPlay="sprint_10",--Last played mode ID
|
||||||
|
date=nil,
|
||||||
|
todayTime=0,
|
||||||
|
}for i=1,25 do STAT.clear[i]={0,0,0,0,0,0}STAT.spin[i]={0,0,0,0,0,0,0}end
|
||||||
|
end
|
||||||
keyMap=FILE.load("conf/key")or{--Key setting
|
keyMap=FILE.load("conf/key")or{--Key setting
|
||||||
{"left","right","x","z","c","up","down","space","tab","r"},{},
|
{"left","right","x","z","c","up","down","space","tab","r"},{},
|
||||||
--Keyboard
|
--Keyboard
|
||||||
|
|||||||
Reference in New Issue
Block a user