Skip to content

Commit 0988a58

Browse files
committed
2.1.4 now works hooray
1 parent 846bfaf commit 0988a58

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

sc2reader/readers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def __call__(self, data, replay):
9595
ai_build=data.read_bits(7) if replay.base_build >= 23925 else None,
9696
handicap=data.read_bits(7),
9797
observe=data.read_bits(2),
98+
logo_index=data.read_uint32() if replay.base_build >= 32283 else None,
9899
working_set_slot_id=data.read_uint8() if replay.base_build >= 24764 and data.read_bool() else None,
99100
rewards=[data.read_uint32() for i in range(data.read_bits(6 if replay.base_build >= 24764 else 5))],
100101
toon_handle=data.read_aligned_string(data.read_bits(7)) if replay.base_build >= 17266 else None,

test_replays/test_all.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,9 @@ def test_bad_unit_ids(self):
391391
replay = sc2reader.load_replay("test_replays/2.0.11.26825/bad_unit_ids_1.SC2Replay", load_level=4)
392392
replay = sc2reader.load_replay("test_replays/2.0.9.26147/bad_unit_ids_2.SC2Replay", load_level=4)
393393

394+
def test_214(self):
395+
replay = sc2reader.load_replay("test_replays/2.1.4/Catallena LE.SC2Replay", load_level=4)
396+
394397

395398

396399
class TestGameEngine(unittest.TestCase):

0 commit comments

Comments
 (0)