From 44f490b00a6745c39d20553e9269372afed1771c Mon Sep 17 00:00:00 2001 From: MeowcaTheoRange Date: Sat, 23 Nov 2024 20:37:39 -0600 Subject: [PATCH] Fix configuration not being inited upon first boot --- scripts/GlobalConfigPreInit.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/GlobalConfigPreInit.gd b/scripts/GlobalConfigPreInit.gd index 80c6f06..aa5fddc 100644 --- a/scripts/GlobalConfigPreInit.gd +++ b/scripts/GlobalConfigPreInit.gd @@ -3,7 +3,6 @@ extends Config # Called when the node enters the scene tree for the first time. func _ready() -> void: - self.clone_config(Config.new_clear()) load_from_file() func bind_keys() -> void: @@ -52,6 +51,8 @@ func load_from_file() -> void: if err != OK: return + + self.clone_config(Config.new_clear()) for key in config.get_section_keys("FunkPanion"): var value = config.get_value("FunkPanion", key)