Skip to main content

load

Function load 

Source
pub fn load(
    path: impl AsRef<Path>,
    limits: SaveLimits,
) -> Result<SaveData, SaveError>
Expand description

Reads only the named regular file. Limits and actual file length are checked before payload allocation; checksum validation precedes game decoding. Leftover temporary files are never discovered or promoted automatically.