diff --git a/game/vctrl.lua b/game/vctrl.lua index ed9cde6..743d39b 100644 --- a/game/vctrl.lua +++ b/game/vctrl.lua @@ -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 \ No newline at end of file diff --git a/scene/touch_config.lua b/scene/touch_config.lua index 3772ff0..a97a550 100644 --- a/scene/touch_config.lua +++ b/scene/touch_config.lua @@ -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()