From 680774a5d1f67805912a28a7285e1562ab73cc64 Mon Sep 17 00:00:00 2001 From: "Squishy (C6H12O6+NaCl+H2O)" <106439598+SweetSea-ButImNotSweet@users.noreply.github.com> Date: Sat, 25 May 2024 00:52:03 +0700 Subject: [PATCH] Fix VCTRL.exportAll() --- game/vctrl.lua | 1 + scene/touch_config.lua | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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()