resolve typo in settings path
This commit is contained in:
parent
355fbc6939
commit
f64bb5a71c
|
|
@ -2,7 +2,8 @@
|
||||||
extends Node
|
extends Node
|
||||||
|
|
||||||
#region configuration
|
#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_group("Acessability")
|
||||||
@export var screen_reader_enabled:bool = false
|
@export var screen_reader_enabled:bool = false
|
||||||
|
|
@ -114,15 +115,18 @@ func save_settings():
|
||||||
}
|
}
|
||||||
|
|
||||||
var file = FileAccess.open(user_settings_path, FileAccess.WRITE)
|
var file = FileAccess.open(user_settings_path, FileAccess.WRITE)
|
||||||
|
print(error_string(FileAccess.get_open_error()))
|
||||||
file.store_string(JSON.stringify(out_dict))
|
file.store_string(JSON.stringify(out_dict))
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
for child in get_parent().get_children():
|
|
||||||
|
for child in get_tree().root.get_children():
|
||||||
if "has_stage" in child:
|
if "has_stage" in child:
|
||||||
pass_stage_to(child)
|
pass_stage_to(child)
|
||||||
|
break
|
||||||
music_volume = music_volume
|
music_volume = music_volume
|
||||||
|
|
||||||
#region focus handling (called staging to avoid name colisions)
|
#region focus handling (called staging to avoid name colisions)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue