mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Fix VCTRL.exportAll()
This commit is contained in:
@@ -222,4 +222,5 @@ end
|
|||||||
function VCTRL.exportAll()
|
function VCTRL.exportAll()
|
||||||
local t = {}
|
local t = {}
|
||||||
for o, k in ipairs(VCTRL) do t[o] = k:export() end
|
for o, k in ipairs(VCTRL) do t[o] = k:export() end
|
||||||
|
return t
|
||||||
end
|
end
|
||||||
@@ -17,7 +17,7 @@ local hasChanged
|
|||||||
local exitSceneFunc = function()
|
local exitSceneFunc = function()
|
||||||
VCTRL.release()
|
VCTRL.release()
|
||||||
BUTTON.release(buttonList)
|
BUTTON.release(buttonList)
|
||||||
SCENE = TitleScene()
|
SCENE = SETTINGS.firstTime and TitleScene() or InputConfigScene()
|
||||||
end
|
end
|
||||||
|
|
||||||
buttonList = {
|
buttonList = {
|
||||||
@@ -59,7 +59,7 @@ buttonList = {
|
|||||||
)
|
)
|
||||||
if selection == 1 then
|
if selection == 1 then
|
||||||
SETTINGS.input.virtual = VCTRL.exportAll()
|
SETTINGS.input.virtual = VCTRL.exportAll()
|
||||||
SETTINGS.__force_saving__()
|
SETTINGS.firstTime = false
|
||||||
-- love.window.showMessageBox("Saved!", "Your changes was saved!")
|
-- love.window.showMessageBox("Saved!", "Your changes was saved!")
|
||||||
|
|
||||||
exitSceneFunc()
|
exitSceneFunc()
|
||||||
|
|||||||
Reference in New Issue
Block a user