diff --git a/main.lua b/main.lua index cb61192c..69d87283 100644 --- a/main.lua +++ b/main.lua @@ -42,7 +42,7 @@ for _,v in next,{"conf","record","replay"}do ::NEXT:: end ---Delete useless mode record file +--Delete useless files for _,v in next,{ "tech_ultimate.dat", "tech_ultimate+.dat", @@ -51,6 +51,7 @@ for _,v in next,{ "marathon_ultimate.dat", "infinite.dat", "infinite_dig.dat", + "conf/account", }do if fs.getInfo(v)then fs.remove(v)end end diff --git a/parts/scenes/login.lua b/parts/scenes/login.lua index 96589531..e0c494ca 100644 --- a/parts/scenes/login.lua +++ b/parts/scenes/login.lua @@ -11,7 +11,7 @@ local function tick_httpREQ_newLogin(task) LOG.print(text.loginSuccessed) USER.email=res.email USER.auth_token=res.auth_token - FILE.save(USER,"conf/account","q") + FILE.save(USER,"conf/user","q") httpRequest( TICK.httpREQ_getAccessToken, diff --git a/parts/tick.lua b/parts/tick.lua index 957255f6..9c55b500 100644 --- a/parts/tick.lua +++ b/parts/tick.lua @@ -10,7 +10,7 @@ function Tick.httpREQ_getAccessToken(task) if res then LOG.print(text.accessSuccessed) USER.access_token=res.access_token - FILE.save(USER,"conf/account") + FILE.save(USER,"conf/user") SCN.swapTo("netgame") else LOG.print(text.netErrorCode..response.code..": "..res.message,"warn")