diff --git a/src/dev-util/savegame.gd b/src/dev-util/savegame.gd index 87f6560..f2c8a0b 100644 --- a/src/dev-util/savegame.gd +++ b/src/dev-util/savegame.gd @@ -16,11 +16,12 @@ func _validate_property(property: Dictionary): property.usage = not PROPERTY_USAGE_STORAGE -func _init(filepath = "") -> void: +func _init(initial_filepath = "") -> void: - if filepath == "": + if initial_filepath == "": filepath = "%s/%s" % [State.user_saves_path, unique_save_name] - + else: + filepath = initial_filepath read_save_file() func read_save_file():