From 0dbb0a6ef0ee24bd4fbd293cdf40a3f066887bb6 Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 1 Aug 2017 03:55:17 +0200 Subject: Settings reload moved to separate method --- not/Settings.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/not/Settings.lua b/not/Settings.lua index ea4c428..ca429eb 100644 --- a/not/Settings.lua +++ b/not/Settings.lua @@ -104,9 +104,11 @@ function Settings.change (n, left, right, up, down, attack, jump, joystick) else bool = false end - -- Save current settings Settings.current.sets[n] = {left, right, up, down, attack, jump, bool} + Settings.reload() +end + +function Settings.reload () Settings.save() - -- Load settings Settings.load() end -- cgit v1.1