diff options
Diffstat (limited to 'servergreps/hercules/src/hercules.py')
-rwxr-xr-x | servergreps/hercules/src/hercules.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/servergreps/hercules/src/hercules.py b/servergreps/hercules/src/hercules.py index f60a0f8..1fd99e6 100755 --- a/servergreps/hercules/src/hercules.py +++ b/servergreps/hercules/src/hercules.py @@ -155,3 +155,15 @@ class Hercules: for packet in self.inPackets: self.inPacketsSorted.append(packet) self.inPacketsSorted.sort() + + + def processPackets(self, packetDir, packetVersion): + namedPacketsPath = packetDir + "/src/packets_struct.h" + srcPath = packetDir + "/src" + serverInPacketsHPath = packetDir + "/src/packets.h" + serverLoginInPackets = packetDir + "/src/lclif.c" + self.collectNamedPackets(namedPacketsPath) + self.collectOutPackets(srcPath) + self.collectInPackets(serverInPacketsHPath, serverLoginInPackets) + self.sortInPackets() + self.sortOutPackets() |