I give up

This commit is contained in:
CenTdemeern1 2025-05-01 01:03:40 +02:00
parent 0490edb8ec
commit 407a59d3eb
6 changed files with 46 additions and 135 deletions

View file

@ -290,7 +290,11 @@ func _on_load_button_pressed():
#LOAD AVATAR
func _on_load_dialog_file_selected(path):
var data = Saving.read_save(path)
var data
if path == "default":
data = load("res://default_avatars/hat_guy/hat_guy.tres")
else:
data = load(path)
if data == null:
return