Browse Source

fix: Autosaves not working if saves path does not exist

master
Ryan Reed 2 months ago
parent
commit
73fe4fa6c7
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      addons/save_load_system/autoloads/save_game_manager.gd

+ 1
- 0
addons/save_load_system/autoloads/save_game_manager.gd View File

@ -186,6 +186,7 @@ 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)
saves_dir = DirAccess.open(_save_game_settings.save_game_data_path)
var autosaves: Array[String] = []
for filename in saves_dir.get_files():


Loading…
Cancel
Save