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