SL2 Analyzer
Read a FromSoftware .sl2 save and report what is in it
Loading...
Searching...
No Matches
edit.py File Reference

Go to the source code of this file.

Namespaces

namespace  sl2
 
namespace  sl2.edit
 

Functions

 sl2.edit._checked_save (data)
 Return a mutable, checksum-verified BND4 save and its identified game.
 
 sl2.edit._seal (data, entry)
 Recalculate an entry's outer MD5 after its payload has changed.
 
 sl2.edit._encrypt (key, iv, plaintext)
 Encrypt a complete AES-CBC plaintext using the entry's unchanged IV.
 
 sl2.edit.set_steam_id (data, steam_id)
 Change the SteamID64 in a save format whose every required copy is known.
 
 sl2.edit.trim_er_slots (data, keep_slots=None)
 Clear ER slots absent from the roster, or every slot not explicitly retained.
 
 sl2.edit.trim_inactive_slots (data)
 Canonicalise inactive slots without changing any listed character.
 
 sl2.edit._verify (data, game, steam_id=None, active=None, empty_slots=None)
 Check the edited archive's MD5 wrappers and operation-specific invariants.
 

Variables

int sl2.edit.ER_SLOT_ENTRY_SIZE = 0x280010
 Complete on-disk size of one ER character entry, including its MD5 prefix.