From abf827bc2b08076fae88ba70021651baa77679d9 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Fri, 18 Dec 2020 22:52:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=AF=8F=E6=AC=A1=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E6=B8=B8=E6=88=8F=E7=BB=9F=E8=AE=A1=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=9A=84=E6=B6=88=E9=99=A4=E4=BF=A1=E6=81=AF=E5=BF=85=E5=AE=9A?= =?UTF-8?q?=E4=B8=A2=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/globalTables.lua | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/parts/globalTables.lua b/parts/globalTables.lua index 90dc60ab..6091af96 100644 --- a/parts/globalTables.lua +++ b/parts/globalTables.lua @@ -304,20 +304,25 @@ 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 - version=VERSION_CODE, - run=0,game=0,time=0,frame=0, - key=0,rotate=0,hold=0, - extraPiece=0,finesseRate=0, - piece=0,row=0,dig=0, - atk=0,digatk=0, - send=0,recv=0,pend=0,off=0, - clear={},spin={}, - 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 +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, + extraPiece=0,finesseRate=0, + piece=0,row=0,dig=0, + atk=0,digatk=0, + send=0,recv=0,pend=0,off=0, + clear={},spin={}, + 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 {"left","right","x","z","c","up","down","space","tab","r"},{}, --Keyboard