Commit graph

6 commits

Author SHA1 Message Date
8f55d00e24 Complete Persistent.sav parsing, fix up a ton of things
This is unfortunately one giant commit, but this now (partially) parses
Persistent.sav. There is still some structs and data left to parse, and
we're suspiciously missing 3KiB of data at the end. But... progress!
2025-02-24 00:30:16 -05:00
ff87348e42 Add writing support for booleans and BoolProperty 2025-02-23 16:33:25 -05:00
beaa0e784f Add writing support for strings and StrProperty 2025-02-23 16:31:30 -05:00
4eb1e7dd04 Remove old magic-based property enum
This is now replaced by the pre_assert and string-based version, which
is superior.
2025-02-23 16:03:08 -05:00
21ab9f2cb0 Fix and simplify string property parsing, add test
I figured out what the actual layout of this property is (instead of
guessing, which created some bad results.) And added tests of course!

Also fixed a bug in read_string_with_length() that didn't handle the
case where the string length is zero.
2025-02-23 15:52:21 -05:00
f304304d19 Simplify string reading
A lot of them are just u32 length + byte string, and can be moved into
a common parsing function.
2025-02-23 15:25:50 -05:00