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

@@ -79,10 +79,10 @@ var file := {
}
}
const SETTINGS_DIR := "user://settings.cfg"
static var SETTINGS_DIR := Global.config_path.path_join("settings.cfg")
func _enter_tree() -> void:
DirAccess.make_dir_absolute("user://resource_packs")
DirAccess.make_dir_absolute(Global.config_path.path_join("resource_packs"))
load_settings()
await get_tree().physics_frame
apply_settings()