diff options
author | tpart <tpart120@proton.me> | 2024-09-07 17:34:19 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-09-07 17:34:19 +0200 |
commit | 2f9828a2c5da49a7cca2e5b26c0e1c6d01577d1e (patch) | |
tree | fb03ec5bae8245fab60e57f06874b4b0ba972e57 /client/settings.gd | |
parent | b7e4481c5d586e9e5392f6feb1651e4ca79f7fbf (diff) | |
download | hurrycurry-2f9828a2c5da49a7cca2e5b26c0e1c6d01577d1e.tar hurrycurry-2f9828a2c5da49a7cca2e5b26c0e1c6d01577d1e.tar.bz2 hurrycurry-2f9828a2c5da49a7cca2e5b26c0e1c6d01577d1e.tar.zst |
Fix error message regarding input application; Fix warning regarding options variable
Diffstat (limited to 'client/settings.gd')
-rw-r--r-- | client/settings.gd | 7 |
1 files changed, 5 insertions, 2 deletions
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 |