Fix VCTRL.exportAll()

This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-05-25 00:52:03 +07:00
parent 415ba51a68
commit 680774a5d1
2 changed files with 3 additions and 2 deletions

View File

@@ -222,4 +222,5 @@ end
function VCTRL.exportAll()
local t = {}
for o, k in ipairs(VCTRL) do t[o] = k:export() end
return t
end

View File

@@ -17,7 +17,7 @@ local hasChanged
local exitSceneFunc = function()
VCTRL.release()
BUTTON.release(buttonList)
SCENE = TitleScene()
SCENE = SETTINGS.firstTime and TitleScene() or InputConfigScene()
end
buttonList = {
@@ -59,7 +59,7 @@ buttonList = {
)
if selection == 1 then
SETTINGS.input.virtual = VCTRL.exportAll()
SETTINGS.__force_saving__()
SETTINGS.firstTime = false
-- love.window.showMessageBox("Saved!", "Your changes was saved!")
exitSceneFunc()