From f64bb5a71c515007b24beb389741688d2834e847 Mon Sep 17 00:00:00 2001 From: betalars Date: Mon, 7 Oct 2024 11:13:22 +0200 Subject: [PATCH] resolve typo in settings path --- src/singletons/global_state.gd | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/singletons/global_state.gd b/src/singletons/global_state.gd index c1cbc67..7ffcfad 100644 --- a/src/singletons/global_state.gd +++ b/src/singletons/global_state.gd @@ -2,7 +2,8 @@ extends Node #region configuration -@export_file var user_settings_path:String = "usr://user_settings.json" +@export_file var user_settings_path:String = "user://user_settings.json" +@export_file var user_saves_path:String = "user://savegames" @export_group("Acessability") @export var screen_reader_enabled:bool = false @@ -114,15 +115,18 @@ func save_settings(): } var file = FileAccess.open(user_settings_path, FileAccess.WRITE) + print(error_string(FileAccess.get_open_error())) file.store_string(JSON.stringify(out_dict)) file.close() #endregion func _ready(): - for child in get_parent().get_children(): + + for child in get_tree().root.get_children(): if "has_stage" in child: pass_stage_to(child) + break music_volume = music_volume #region focus handling (called staging to avoid name colisions)