Skip to content

Commit e915500

Browse files
committed
Adjusts the event mapping table to extend the range of the 04-X6 event. This allows newer replays to successfully parse
1 parent f632da6 commit e915500

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

sc2reader/eventparsers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,6 @@ def load(self, event, bytes):
477477
class UnknownEventParser_04XC(object):
478478
def load(self, event, bytes):
479479
event.name = 'unknown04XC'
480-
print bytes.peek(20)
481480
return event
482481

483482
#####################################################

sc2reader/parsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ class EventParser_17326(EventParser):
319319
0x04: [
320320
(UnknownEventParser_0487(), lambda e: e.code == 0x87 ),
321321
(UnknownEventParser_04C6(), lambda e: e.code == 0xC6 ),
322-
(UnknownEventParser_04XC(), lambda e: e.code & 0x0F == 0x0C and e.code >> 4 <= 0x04 ),],
322+
(UnknownEventParser_04XC(), lambda e: e.code & 0x0F == 0x0C and e.code >> 4 <= 0x6 ),],
323323
0x05: [
324324
(UnknownEventParser_0589(), lambda e: e.code == 0x89 ),],
325325
}

0 commit comments

Comments
 (0)