@@ -656,9 +656,8 @@ local commands={}do
|
||||
if #key>0 then
|
||||
if SETTING[key]~=nil then
|
||||
SETTING[key]=nil
|
||||
if FILE.save(SETTING,'conf/settings')then
|
||||
log{C.Y,("Succesfully erased key '%s'"):format(key)}
|
||||
end
|
||||
saveSettings()
|
||||
log{C.Y,("Succesfully erased key '%s'"):format(key)}
|
||||
else
|
||||
log{C.R,"No key called "..key}
|
||||
end
|
||||
@@ -683,7 +682,7 @@ local commands={}do
|
||||
if M.x then RANKS[name]=0 end
|
||||
end
|
||||
end
|
||||
FILE.save(RANKS,'conf/unlock')
|
||||
saveProgress()
|
||||
log{C.lC,"\85\78\76\79\67\75\65\76\76"}
|
||||
SFX.play('clear_2')
|
||||
else
|
||||
@@ -719,7 +718,7 @@ local commands={}do
|
||||
code=function(bool)
|
||||
if bool=="on"or bool=="off"then
|
||||
SETTING.allowTAS=bool=="on"
|
||||
FILE.save(SETTING,'conf/settings')
|
||||
saveSettings()
|
||||
log("Allow TAS: "..bool)
|
||||
if bool then
|
||||
log("Hot keys: f1=play/pause f2=slowdown f3=speedup/nextframe")
|
||||
|
||||
@@ -12,7 +12,7 @@ local langList={
|
||||
local scene={}
|
||||
|
||||
function scene.sceneBack()
|
||||
FILE.save(SETTING,'conf/settings')
|
||||
saveSettings()
|
||||
end
|
||||
|
||||
local function _setLang(n)
|
||||
|
||||
@@ -116,7 +116,7 @@ local loadingThread=coroutine.wrap(function()
|
||||
end
|
||||
end
|
||||
if editFlag then
|
||||
FILE.save(RANKS,'conf/unlock')
|
||||
saveProgress()
|
||||
end
|
||||
|
||||
YIELD('loadOther')
|
||||
|
||||
@@ -37,9 +37,8 @@ scene.widgetList={
|
||||
RANKS[k]=nil
|
||||
end
|
||||
end
|
||||
if FILE.save(RANKS,'conf/unlock')then
|
||||
MES.new('check',text.importSuccess)
|
||||
end
|
||||
saveProgress()
|
||||
MES.new('check',text.importSuccess)
|
||||
else
|
||||
MES.new('error',text.dataCorrupted)
|
||||
end
|
||||
@@ -49,9 +48,8 @@ scene.widgetList={
|
||||
local D=parseCB()
|
||||
if D and D.version==STAT.version then
|
||||
TABLE.update(D,STAT)
|
||||
if FILE.save(STAT,'conf/data')then
|
||||
MES.new('check',text.importSuccess)
|
||||
end
|
||||
saveStats()
|
||||
MES.new('check',text.importSuccess)
|
||||
else
|
||||
MES.new('error',text.dataCorrupted)
|
||||
end
|
||||
@@ -62,9 +60,8 @@ scene.widgetList={
|
||||
if D then
|
||||
TABLE.update(D,SETTING)
|
||||
applySettings()
|
||||
if FILE.save(SETTING,'conf/settings')then
|
||||
MES.new('check',text.importSuccess)
|
||||
end
|
||||
saveSettings()
|
||||
MES.new('check',text.importSuccess)
|
||||
else
|
||||
MES.new('error',text.dataCorrupted)
|
||||
end
|
||||
@@ -74,9 +71,8 @@ scene.widgetList={
|
||||
local D=parseCB()
|
||||
if D then
|
||||
TABLE.update(D,VK_org)
|
||||
if FILE.save(VK_org,'conf/virtualkey')then
|
||||
MES.new('check',text.importSuccess)
|
||||
end
|
||||
FILE.save(VK_org,'conf/virtualkey')
|
||||
MES.new('check',text.importSuccess)
|
||||
else
|
||||
MES.new('error',text.dataCorrupted)
|
||||
end
|
||||
|
||||
@@ -6,7 +6,7 @@ function scene.sceneInit()
|
||||
BG.set()
|
||||
end
|
||||
function scene.sceneBack()
|
||||
FILE.save(SETTING,'conf/settings')
|
||||
saveSettings()
|
||||
end
|
||||
|
||||
function scene.draw()
|
||||
|
||||
@@ -17,7 +17,7 @@ function scene.sceneInit()
|
||||
BG.set()
|
||||
end
|
||||
function scene.sceneBack()
|
||||
FILE.save(SETTING,'conf/settings')
|
||||
saveSettings()
|
||||
end
|
||||
|
||||
function scene.mouseDown(x,y)
|
||||
|
||||
@@ -3,7 +3,7 @@ local gc=love.graphics
|
||||
local scene={}
|
||||
|
||||
function scene.sceneBack()
|
||||
FILE.save(SETTING,'conf/settings')
|
||||
saveSettings()
|
||||
end
|
||||
|
||||
local fakeBlock={{true}}
|
||||
|
||||
Reference in New Issue
Block a user