Skip to content

Commit 00a914c

Browse files
committed
Add entry for the South East Asia gateway.
1 parent e11a16f commit 00a914c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

sc2reader/constants.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,18 +155,30 @@
155155
# There are no current plans to have multiple PTR servers.
156156
# Source: http://us.blizzard.com/support/article.xml?locale=en_US&articleId=36109
157157
REGIONS = {
158+
# United States
158159
'us': {
159160
1: 'us',
160161
2: 'la',
161162
},
163+
164+
# Europe
162165
'eu': {
163166
1: 'eu',
164167
2: 'ru',
165168
},
169+
170+
# Korea
166171
'kr': {
167172
1: 'kr',
168173
2: 'tw',
169174
},
175+
176+
# South East Asia
177+
'sea': {
178+
1: 'sea',
179+
},
180+
181+
# Public Test
170182
'xx': {
171183
1: 'xx',
172184
},

sc2reader/processors.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ def Full(replay):
1212
if 'initData' in replay.raw and replay.raw.initData.map_data:
1313
replay.gateway = replay.raw.initData.map_data[0].gateway
1414

15+
#Expand this special case mapping
16+
if replay.gateway == 'sg':
17+
replay.gateway = 'sea'
18+
1519
if 'details' in replay.raw:
1620
replay.map = replay.raw.details.map
1721
replay.file_time = replay.raw.details.file_time

0 commit comments

Comments
 (0)