Open vawser opened 7 months ago
I'm happy for this to go in.
At some point I'd like to move the logic from dcx to binaryreader to handle other formats that may be fucked with, and from there figure out a way to handle the errors without having to add checks on every interaction with soulsformats. But for now this is an improvement.
Changed the bypass to BinaryReaderEx. Credit to ivi for this method.
Per witchybnd updates, it seems "encryption technology" has gone futher than just abusing asserts or the dflt type. Is this PR still relevant to modding or is outdated without additional mitigations? How do we maintain a documentarian implementation that's also expected to read falsified files? This whole fight is a mess and I hate it here.
Added a toggle to allow BinaryReaderEx to ignore Asserts. Added try catch to the Param Bank loads so they don't cause a DSMS crash if they fail.