mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-14 07:55:33 +01:00
fix PostTinyBin parsing
This commit is contained in:
@@ -11,7 +11,10 @@ import (
|
|||||||
// MsgMhfPostTinyBin represents the MSG_MHF_POST_TINY_BIN
|
// MsgMhfPostTinyBin represents the MSG_MHF_POST_TINY_BIN
|
||||||
type MsgMhfPostTinyBin struct {
|
type MsgMhfPostTinyBin struct {
|
||||||
AckHandle uint32
|
AckHandle uint32
|
||||||
Unk []byte
|
Unk0 uint16
|
||||||
|
Unk1 uint8
|
||||||
|
Unk2 uint8
|
||||||
|
Data []byte
|
||||||
}
|
}
|
||||||
|
|
||||||
// Opcode returns the ID associated with this packet type.
|
// Opcode returns the ID associated with this packet type.
|
||||||
@@ -22,7 +25,10 @@ func (m *MsgMhfPostTinyBin) Opcode() network.PacketID {
|
|||||||
// Parse parses the packet from binary
|
// Parse parses the packet from binary
|
||||||
func (m *MsgMhfPostTinyBin) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
|
func (m *MsgMhfPostTinyBin) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
|
||||||
m.AckHandle = bf.ReadUint32()
|
m.AckHandle = bf.ReadUint32()
|
||||||
m.Unk = bf.ReadBytes(14)
|
m.Unk0 = bf.ReadUint16()
|
||||||
|
m.Unk1 = bf.ReadUint8()
|
||||||
|
m.Unk2 = bf.ReadUint8()
|
||||||
|
m.Data = bf.ReadBytes(uint(bf.ReadUint16()))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user