Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions mgz/fast/header.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,8 @@ def parse_de(data, version, save, skip=False):
data.read(8)
if save >= 64.3:
data.read(4)
if save >= 67.0:
de_string(data)

players.append(dict(
number=number,
Expand Down Expand Up @@ -553,6 +555,8 @@ def parse_de(data, version, save, skip=False):
data.read(8)
if save >= 37:
timestamp, x = unpack('<II', data)
if save >= 67.0:
data.read(8)
rms_mod_id = None
rms_filename = None
for s in strings:
Expand Down
4 changes: 3 additions & 1 deletion mgz/header/de.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"custom_ai"/Flag,
If(lambda ctx: find_save_version(ctx) >= 25.06, "handicap"/Bytes(8)),
If(lambda ctx: find_save_version(ctx) >= 64.3, "unknown_de_64_3" / Int32ul),
If(lambda ctx: find_save_version(ctx) >= 67.0, "unknown_67_0" / de_string),
)

string_block = Struct(
Expand Down Expand Up @@ -178,5 +179,6 @@
"ver37"/If(lambda ctx: find_save_version(ctx) >= 37, Struct(
Int32ul,
Int32ul
))
)),
If(lambda ctx: find_save_version(ctx) >= 67.0, Bytes(8)),
)