mirror of
https://github.com/barronwaffles/dwc_network_server_emulator.git
synced 2026-04-24 15:27:06 -05:00
Decrypt entire command in gamestats
Previously it would decrypt by packet, now it will wait for the entire packet before trying to decrypt. This fixes games like Mega Man Star Force.
This commit is contained in:
parent
000f3170e1
commit
e661fa7466
|
|
@ -103,8 +103,14 @@ class Gamestats(LineReceiver):
|
|||
def rawDataReceived(self, data):
|
||||
try:
|
||||
# Decrypt packet
|
||||
msg = self.remaining_message + str(self.crypt(data))
|
||||
self.remaining_message += data
|
||||
|
||||
if "\\final\\" not in data:
|
||||
return
|
||||
|
||||
msg = str(self.crypt(self.remaining_message))
|
||||
self.data = msg
|
||||
self.remaining_message = ""
|
||||
|
||||
commands, self.remaining_message = gs_query.parse_gamespy_message(msg)
|
||||
logger.log(logging.DEBUG, "STATS RESPONSE: %s" % msg)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user