|
|
@ -107,7 +107,7 @@ func _create_autosave() -> void: |
|
|
|
|
|
|
|
autosave_start.emit() |
|
|
|
|
|
|
|
_move_autosaves() |
|
|
|
_rotate_autosaves() |
|
|
|
|
|
|
|
var autosave_filename: String = _save_game_settings.autosave_file_name_prepend + "01.tres" |
|
|
|
_save_game_as_resource("Auto Save", autosave_filename) |
|
|
@ -177,7 +177,7 @@ func _load_save_settings() -> bool: |
|
|
|
return true |
|
|
|
|
|
|
|
## Increment autosave numbers and if we've reach max number of autosaves, remove the oldest one |
|
|
|
func _move_autosaves() -> void: |
|
|
|
func _rotate_autosaves() -> void: |
|
|
|
var saves_dir = DirAccess.open(_save_game_settings.save_game_data_path) |
|
|
|
if saves_dir == null: |
|
|
|
DirAccess.make_dir_absolute(_save_game_settings.save_game_data_path) |
|
|
|