resolve typo in settings path

This commit is contained in:
betalars 2024-10-07 11:13:22 +02:00
parent 355fbc6939
commit f64bb5a71c
1 changed files with 6 additions and 2 deletions

View File

@ -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)