feat: serve native AVA2 battle pass, drop finder and event calendar
This commit is contained in:
@@ -103,8 +103,8 @@ if cpacket.is_file():
|
||||
assert 'static_assert(sizeof(TPacketCGSwitchbot) == 7 && sizeof(TPacketGCSwitchbot) == 7,' in client
|
||||
stream=(CLIENT/'PythonNetworkStreamPhaseGame.cpp').read_bytes().decode('latin1')
|
||||
# the EU branch (the one every locale.cfg build takes) keeps 1215955205 first for the atoi version check
|
||||
assert 'strncpy(kVersionPacket.timestamp, "1215955205 mt20261016", sizeof(kVersionPacket.timestamp)-1);' in stream
|
||||
assert 'strncpy(kVersionPacket.timestamp, "mt20261016", sizeof(kVersionPacket.timestamp)-1);' in stream
|
||||
assert 'strncpy(kVersionPacket.timestamp, "1215955205 mt20261019", sizeof(kVersionPacket.timestamp)-1);' in stream
|
||||
assert 'strncpy(kVersionPacket.timestamp, "mt20261019", sizeof(kVersionPacket.timestamp)-1);' in stream
|
||||
pyswitch=(CLIENT/'PythonSwitchbot.h').read_bytes().decode('latin1')
|
||||
ctable=pyswitch[pyswitch.index('struct TSwitchbotTable'):];ctable=ctable[:ctable.index('};')]
|
||||
assert re.findall(r'^\s*[A-Za-z_][\w:]*\s+(\w+)(?:\[[^;]*\])?;',ctable,re.M)==table,ctable
|
||||
|
||||
Reference in New Issue
Block a user