mirror of
https://github.com/barronwaffles/dwc_network_server_emulator.git
synced 2026-08-20 09:34:42 -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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user