Add true portable mode (#259)

This commit is contained in:
Jeod
2025-09-26 15:32:42 -04:00
committed by GitHub
parent 7b0a62c765
commit 659e9f3ce8
28 changed files with 176 additions and 96 deletions

View File

@@ -24,7 +24,7 @@ func update() -> void:
if resource_setter != null:
var path = "res://Assets/Sprites/Players/" + character + "/" + Player.POWER_STATES[int(power_state)] + ".json"
if Player.CHARACTERS.find(character) > 3:
path = path.replace("res://Assets/Sprites/Players/", "user://custom_characters/")
path = path.replace("res://Assets/Sprites/Players/", Global.config_path.path_join("custom_characters/"))
var json = resource_setter.get_resource(load(path))
sprite_frames = json
if sprite_frames == null: