|
SL2 Analyzer
Read a FromSoftware .sl2 save and report what is in it
|
Functions | |
| _checked_save (data) | |
| Return a mutable, checksum-verified BND4 save and its identified game. | |
| _seal (data, entry) | |
| Recalculate an entry's outer MD5 after its payload has changed. | |
| _encrypt (key, iv, plaintext) | |
| Encrypt a complete AES-CBC plaintext using the entry's unchanged IV. | |
| set_steam_id (data, steam_id) | |
| Change the SteamID64 in a save format whose every required copy is known. | |
| trim_er_slots (data, keep_slots=None) | |
| Clear ER slots absent from the roster, or every slot not explicitly retained. | |
| trim_inactive_slots (data) | |
| Canonicalise inactive slots without changing any listed character. | |
| _verify (data, game, steam_id=None, active=None, empty_slots=None) | |
| Check the edited archive's MD5 wrappers and operation-specific invariants. | |
Variables | |
| int | ER_SLOT_ENTRY_SIZE = 0x280010 |
| Complete on-disk size of one ER character entry, including its MD5 prefix. | |
Copy-only archive edits that validate the save before writing it.
|
protected |
Return a mutable, checksum-verified BND4 save and its identified game.
Definition at line 27 of file edit.py.
Referenced by sl2.edit.set_steam_id(), sl2.edit.trim_er_slots(), and sl2.edit.trim_inactive_slots().
|
protected |
Recalculate an entry's outer MD5 after its payload has changed.
Definition at line 42 of file edit.py.
Referenced by sl2.edit.set_steam_id(), sl2.edit.trim_er_slots(), and sl2.edit.trim_inactive_slots().
|
protected |
Encrypt a complete AES-CBC plaintext using the entry's unchanged IV.
Definition at line 50 of file edit.py.
Referenced by sl2.edit.set_steam_id().
| sl2.edit.set_steam_id | ( | data, | |
| steam_id | |||
| ) |
Change the SteamID64 in a save format whose every required copy is known.
Return a verified edited copy; never changes @p data in place.
Definition at line 55 of file edit.py.
References sl2.edit._checked_save(), sl2.edit._encrypt(), sl2.edit._seal(), and sl2.edit._verify().
| sl2.edit.trim_er_slots | ( | data, | |
keep_slots = None |
|||
| ) |
Clear ER slots absent from the roster, or every slot not explicitly retained.
Return a verified archive copy with selected ER profiles and slots zeroed.
Definition at line 136 of file edit.py.
References sl2.edit._checked_save(), sl2.edit._seal(), and sl2.edit._verify().
| sl2.edit.trim_inactive_slots | ( | data | ) |
Canonicalise inactive slots without changing any listed character.
Return a verified copy with inactive Sekiro or ER slots cleared.
Definition at line 185 of file edit.py.
References sl2.edit._checked_save(), sl2.edit._seal(), and sl2.edit._verify().
|
protected |
Check the edited archive's MD5 wrappers and operation-specific invariants.
Definition at line 209 of file edit.py.
Referenced by sl2.edit.set_steam_id(), sl2.edit.trim_er_slots(), and sl2.edit.trim_inactive_slots().