diff options
Diffstat (limited to 'servergreps/hercules/src/threeceam.py')
-rwxr-xr-x | servergreps/hercules/src/threeceam.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/servergreps/hercules/src/threeceam.py b/servergreps/hercules/src/threeceam.py index 4b9fd02..77e1f19 100755 --- a/servergreps/hercules/src/threeceam.py +++ b/servergreps/hercules/src/threeceam.py @@ -8,6 +8,7 @@ import os import re from src.preproc import PreProc +from src.utils import Utils filt = re.compile(".+[.](c|h)", re.IGNORECASE) @@ -194,6 +195,12 @@ class Threeceam: self.functionToId[m.group("function")] = data + def collectCharInPackets(self, charFilePackets): + for packets in Utils.enumCasePackets(charFilePackets, "int char_parse_char(int fd)"): + self.inPackets[packets[1]] = (0, packets[0]) + self.functionToId[packets[0]] = packets[1] + + def sortInPackets(self): for packet in self.inPackets: self.inPacketsSorted.append(packet) @@ -205,9 +212,11 @@ class Threeceam: srcPath = packetDir + "/src/" + self.dirName # serverInPacketsHPath = packetDir + "/src/" + self.dirName + "/packets.h" # serverLoginInPackets = packetDir + "/src/" + self.dirName + "/lclif.c" +# serverCharPackets = packetDir + "/src/" + self.dirName + "/char.c" # self.collectNamedPackets(namedPacketsPath) self.collectOutPackets(srcPath) # self.collectInPackets(serverInPacketsHPath, serverLoginInPackets) +# self.collectCharInPackets(serverCharPackets); # self.sortInPackets() self.sortOutPackets() |