pub fn read_save_archive<R: Read>(reader: &mut R) -> Result<Erf, ErfBinaryError>Expand description
Reads a save archive from a reader.
This helper accepts both MOD (canonical KotOR) and SAV (compatibility)
signatures on input, then normalizes the in-memory ErfFileType to
ErfFileType::Mod.
ยงErrors
Reads through
CompatibilityAurora, so
everything read_erf_with_options reports under that mode, plus
ErfBinaryError::InvalidData for an archive that reads and carries an
ERF or HAK signature. That is the one refusal this adds: a save is
one of the two signatures or it is not a save.