Skip to content

Commit dcb3e8e

Browse files
committed
The clan logo is a DepotFile location, not a string.
1 parent 9ab207d commit dcb3e8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sc2reader/readers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __call__(self, data, replay):
1919
user_initial_data=[dict(
2020
name=data.read_aligned_string(data.read_uint8()),
2121
clan_tag=data.read_aligned_string(data.read_uint8()) if replay.base_build >= 24764 and data.read_bool() else None,
22-
clan_logo=data.read_aligned_string(40) if replay.base_build >= 27950 and data.read_bool() else None,
22+
clan_logo=DepotFile(data.read_aligned_bytes(40)) if replay.base_build >= 27950 and data.read_bool() else None,
2323
highest_league=data.read_uint8() if replay.base_build >= 24764 and data.read_bool() else None,
2424
combined_race_levels=data.read_uint32() if replay.base_build >= 24764 and data.read_bool() else None,
2525
random_seed=data.read_uint32(),
@@ -1457,7 +1457,7 @@ def hijack_replay_game_event(self, data):
14571457
name=data.read_aligned_string(data.read_uint8()),
14581458
toon_handle=data.read_aligned_string(data.read_bits(7)) if data.read_bool() else None,
14591459
clan_tag=data.read_aligned_string(data.read_uint8()) if data.read_bool() else None,
1460-
clan_logo=data.read_aligned_string(40) if data.read_bool() else None,
1460+
clan_logo=DepotFile(data.read_aligned_bytes(40)) if data.read_bool() else None,
14611461
) for i in range(data.read_bits(5))],
14621462
method=data.read_bits(1),
14631463
)
@@ -1480,7 +1480,7 @@ def game_user_join_event(self, data):
14801480
name=data.read_aligned_string(data.read_bits(8)),
14811481
toon_handle=data.read_aligned_string(data.read_bits(7)) if data.read_bool() else None,
14821482
clan_tag=data.read_aligned_string(data.read_uint8()) if data.read_bool() else None,
1483-
clan_logo=data.read_aligned_string(40) if data.read_bool() else None,
1483+
clan_logo=DepotFile(data.read_aligned_bytes(40)) if data.read_bool() else None,
14841484
)
14851485

14861486

0 commit comments

Comments
 (0)