修复每次启动游戏统计信息的消除信息必定丢失
This commit is contained in:
@@ -304,7 +304,11 @@ SETTING={--Settings
|
||||
VKIcon=true,--If disp icon
|
||||
VKAlpha=.3,
|
||||
}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")
|
||||
if S then--Statistics
|
||||
STAT=S
|
||||
else
|
||||
STAT={
|
||||
version=VERSION_CODE,
|
||||
run=0,game=0,time=0,frame=0,
|
||||
key=0,rotate=0,hold=0,
|
||||
@@ -318,6 +322,7 @@ STAT=FILE.load("conf/data")or{--Statistics
|
||||
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
|
||||
{"left","right","x","z","c","up","down","space","tab","r"},{},
|
||||
--Keyboard
|
||||
|
||||
Reference in New Issue
Block a user