Expand description
Path utilities and persistent app configuration.
The save-folder path and backup root are persisted to app.ini under the
platform config directory so they survive between sessions. The disclaimer
acceptance is tracked via a sentinel file in the same directory.
The backup root defaults to ~/NotAlterra and can be changed via the
Set backup location menu item.
Structs§
- AppConfig
- Session-lifetime configuration loaded from and persisted to
app.ini.
Statics§
- BACKUP_
ROOT 🔒 - Custom backup root directory, set via the
Set backup locationmenu. WhenNone, falls back toexe_dir().join("backups").
Functions§
- accept_
disclaimer - Create the disclaimer sentinel (0-byte file).
- app_
ini_ path - Path to the persistent
app.iniconfiguration file. - backups_
config_ dir - Path to the
ue5/subdirectory under the backup root for UE5 Config.inibackup archives. Auto-creates the directory on first call. - backups_
saves_ dir - Path to the
saves/directory under the backup root (tar.gz archives). Auto-creates the directory on first call. - cleanup_
stale_ config - Remove the stale
config.iniif it exists. Returnstrueif removed. - config_
base_ 🔒dir - Fixed base directory for
app.iniand the sentinel file, under the standard platform config location. Separate from backup data so that~/NotAlterraremains the user’s visible backup data directory. - disclaimer_
accepted - Return
trueif the disclaimer sentinel exists. - ensure_
dir - Ensure a directory exists, creating all parents as needed.
- exe_dir
- Return the directory containing the running executable.
- get_
backup_ root - Return the current backup root, or the default user-profile path.
- home_
notalterra_ 🔒dir - Return
~/NotAlterraas the user’s data directory for save/ue5 backups. Falls back toexe_dir()if home is not available. - load_
app_ config - Load
app.inifrom the fixed config directory. Returns default (empty) values if the file does not exist or cannot be read. - reject_
disclaimer - Remove the disclaimer sentinel if it exists.
- save_
app_ config - Write the current session paths to
app.iniin the fixed config directory. - sentinel_
path - Path to the disclaimer sentinel file in the config directory.
- set_
backup_ root - Set a custom backup root directory. Passes ownership.
- stale_
config_ path - Path to the stale
config.inifrom v0.3.0 and earlier.