SaveGame
Constants
DEFAULT_DIR = "saves"
DEFAULT_SLOT = "autosave"
Class methods
Load game state from disk. Returns the restored state, or a String error.
Resolve a user-supplied save argument to a filesystem path.
- nil / blank โ saves/autosave.json
- "hero1" โ saves/hero1.json (sanitized)
- "foo.json" or "path/to/file" โ used as a path literally