mirror of
https://github.com/CPunch/gopenfusion.git
synced 2024-11-21 23:10:06 +00:00
protocol: add structures dumped from beta-20100104
This commit is contained in:
parent
97a04c8ea8
commit
57e681742e
4172
protocol/structs.go
4172
protocol/structs.go
File diff suppressed because it is too large
Load Diff
@ -90,9 +90,10 @@ func (client *Client) ClientHandler() {
|
|||||||
log.Printf("Got packet: %#v", loginPkt)
|
log.Printf("Got packet: %#v", loginPkt)
|
||||||
|
|
||||||
client.Send(&protocol.SP_LS2CL_REP_LOGIN_FAIL{
|
client.Send(&protocol.SP_LS2CL_REP_LOGIN_FAIL{
|
||||||
ErrorCode: protocol.LOGIN_FAIL_VERSION_ERROR,
|
IErrorCode: protocol.LOGIN_FAIL_EULA_ERROR,
|
||||||
ID: loginPkt.ID,
|
SZID: loginPkt.SZID,
|
||||||
}, protocol.P_LS2CL_REP_LOGIN_FAIL)
|
}, protocol.P_LS2CL_REP_LOGIN_FAIL)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
log.Printf("[WARN] unsupported packet ID: %x\n", typeID)
|
log.Printf("[WARN] unsupported packet ID: %x\n", typeID)
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
from the disassembled source might be needed. This script can also be used to generate c-style structures
|
from the disassembled source might be needed. This script can also be used to generate c-style structures
|
||||||
(because it already does!)
|
(because it already does!)
|
||||||
|
|
||||||
usage: ./genstructs.py [IN.cs] > out.go
|
usage: ./genstructs.py [IN.cs] > structs.go
|
||||||
'''
|
'''
|
||||||
from distutils.ccompiler import new_compiler
|
from distutils.ccompiler import new_compiler
|
||||||
import subprocess
|
import subprocess
|
||||||
|
Loading…
Reference in New Issue
Block a user