From 2f9828a2c5da49a7cca2e5b26c0e1c6d01577d1e Mon Sep 17 00:00:00 2001 From: tpart Date: Sat, 7 Sep 2024 17:34:19 +0200 Subject: Fix error message regarding input application; Fix warning regarding options variable --- client/settings.gd | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'client/settings.gd') diff --git a/client/settings.gd b/client/settings.gd index 2c3ae9a5..8d81f740 100644 --- a/client/settings.gd +++ b/client/settings.gd @@ -103,7 +103,10 @@ static var change_hooks_apply = { static func apply_initial(): for key in change_hooks_apply.keys(): - change_hooks_apply[key].call(Global.get_setting(key)) + if Global.settings.has(key): + change_hooks_apply[key].call(Global.get_setting(key)) + else: + change_hooks_apply[key].call() static func h_aa(mode): match mode: @@ -156,7 +159,7 @@ static func h_fullscreen(mode: String): "never": if DisplayServer.window_get_mode() == DisplayServer.WINDOW_MODE_FULLSCREEN: DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED) -static func h_input(_x): +static func h_input(): InputManager.apply_input_map(Settings.get_category_dict("input")) # TODO whatever this does -- cgit v1.2.3-70-g09d2