protocol: add structures dumped from beta-20100104

This commit is contained in:
CPunch 2023-03-06 23:37:01 -06:00
parent 97a04c8ea8
commit 57e681742e
3 changed files with 4166 additions and 13 deletions

File diff suppressed because it is too large Load Diff

View File

@ -90,9 +90,10 @@ func (client *Client) ClientHandler() {
log.Printf("Got packet: %#v", loginPkt)
client.Send(&protocol.SP_LS2CL_REP_LOGIN_FAIL{
ErrorCode: protocol.LOGIN_FAIL_VERSION_ERROR,
ID: loginPkt.ID,
IErrorCode: protocol.LOGIN_FAIL_EULA_ERROR,
SZID: loginPkt.SZID,
}, protocol.P_LS2CL_REP_LOGIN_FAIL)
default:
log.Printf("[WARN] unsupported packet ID: %x\n", typeID)
}

View File

@ -8,7 +8,7 @@
from the disassembled source might be needed. This script can also be used to generate c-style structures
(because it already does!)
usage: ./genstructs.py [IN.cs] > out.go
usage: ./genstructs.py [IN.cs] > structs.go
'''
from distutils.ccompiler import new_compiler
import subprocess