Skip to content
Open
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
5 changes: 5 additions & 0 deletions pygbx/gbx.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,8 @@ def read_ghost_events(game_class, bp, cid):
if cid == 0x03092025:
game_class.is_maniaplanet = True
bp.skip(4)
elif cid == 0x03f00dff or cid == 0x3f00dfa:
bp.skip(1)

game_class.events_duration = bp.read_uint32()
if game_class.events_duration != 0:
Expand All @@ -742,6 +744,9 @@ def read_ghost_events(game_class, bp, cid):
entry = headers.ControlEntry(time, name, bp.read_uint16(), bp.read_uint16())
game_class.control_entries.append(entry)

if cid == 0x03f00dff or cid == 0x3f00dfa:
game_class.game_version = "TmNations"
return
game_class.game_version = bp.read_string()
bp.skip(3 * 4)
bp.read_string()
Expand Down