Skip to content

Commit

Permalink
fix def path for saves
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremi360 committed May 12, 2022
1 parent f60e25e commit c0cf9d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addons/Rakugo/lib/systems/StoreManager.gd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends Node

const save_folder_path = "users://saves"
const save_folder_path = "usr://saves"

var store_stack = []
var store_stack_max_length = 5
Expand Down Expand Up @@ -166,9 +166,9 @@ func change_current_stack_index(index):
### Store Stack

func init_store_stack():
store_stack_max_length = ProjectSettings.get(Rakugo.rollback_steps)
store_stack_max_length = ProjectSettings.get_setting(Rakugo.rollback_steps)
var new_save := Store.new()
new_save.game_version = ProjectSettings.get(Rakugo.game_version)
new_save.game_version = ProjectSettings.get_setting(Rakugo.game_version)
new_save.rakugo_version = Rakugo.rakugo_version
new_save.scene = Rakugo.current_scene_name
new_save.history = []
Expand Down Expand Up @@ -253,7 +253,7 @@ func init_persistent_store():
persistent_store = load(persistent_path)
else:
persistent_store = Store.new()
persistent_store.game_version = ProjectSettings.get(Rakugo.game_version)
persistent_store.game_version = ProjectSettings.get_setting(Rakugo.game_version)
persistent_store.rakugo_version = Rakugo.rakugo_version

func save_persistent_store():
Expand Down

0 comments on commit c0cf9d0

Please sign in to comment.