diff options
Diffstat (limited to 'servergreps')
-rwxr-xr-x | servergreps/hercules/src/hercules.py | 8 | ||||
-rwxr-xr-x | servergreps/hercules/update.sh | 9 |
2 files changed, 8 insertions, 9 deletions
diff --git a/servergreps/hercules/src/hercules.py b/servergreps/hercules/src/hercules.py index 1fd99e6..ad82b4e 100755 --- a/servergreps/hercules/src/hercules.py +++ b/servergreps/hercules/src/hercules.py @@ -158,10 +158,10 @@ class Hercules: def processPackets(self, packetDir, packetVersion): - namedPacketsPath = packetDir + "/src/packets_struct.h" - srcPath = packetDir + "/src" - serverInPacketsHPath = packetDir + "/src/packets.h" - serverLoginInPackets = packetDir + "/src/lclif.c" + namedPacketsPath = packetDir + "/src/hercules/packets_struct.h" + srcPath = packetDir + "/src/hercules" + serverInPacketsHPath = packetDir + "/src/hercules/packets.h" + serverLoginInPackets = packetDir + "/src/hercules/lclif.c" self.collectNamedPackets(namedPacketsPath) self.collectOutPackets(srcPath) self.collectInPackets(serverInPacketsHPath, serverLoginInPackets) diff --git a/servergreps/hercules/update.sh b/servergreps/hercules/update.sh index 0ea0b5b..a668a86 100755 --- a/servergreps/hercules/update.sh +++ b/servergreps/hercules/update.sh @@ -7,14 +7,13 @@ function preproc { "-DWBUFW(p,pos)=WBUFW(p,pos)" \ -I../links/$1/src -I../links/$1/3rdparty \ ../links/$1/src/$4/$5 \ - $2/src/$5 + $2/src/hercules/$5 } function genpackets { - if [ ! -d "$2/src" ]; then - mkdir -p "$2/src" - fi - cpp -DPACKETVER=$3 "-Dpacket(id,size,...)=packet(id,size,__VA_ARGS__)" ../links/$1/src/map/packets.h $2/src/packets.h + rm -rf "$2/src" + mkdir -p "$2/src/hercules" + cpp -DPACKETVER=$3 "-Dpacket(id,size,...)=packet(id,size,__VA_ARGS__)" ../links/$1/src/map/packets.h $2/src/hercules/packets.h preproc $1 $2 $3 map packets_struct.h preproc $1 $2 $3 char char.c preproc $1 $2 $3 login login.c |