rename EnumerateStage variable

This commit is contained in:
wish
2022-08-05 16:41:49 +10:00
parent 09812fa81b
commit 43beb46221
2 changed files with 5 additions and 5 deletions

View File

@@ -11,9 +11,9 @@ import (
// MsgSysEnumerateStage represents the MSG_SYS_ENUMERATE_STAGE // MsgSysEnumerateStage represents the MSG_SYS_ENUMERATE_STAGE
type MsgSysEnumerateStage struct { type MsgSysEnumerateStage struct {
AckHandle uint32 AckHandle uint32
Unk0 uint8 // Hardcoded 1 in the binary Unk0 uint8 // Hardcoded 1 in the binary
StageID string // NULL terminated string. StagePrefix string // NULL terminated string.
} }
// Opcode returns the ID associated with this packet type. // Opcode returns the ID associated with this packet type.
@@ -26,7 +26,7 @@ func (m *MsgSysEnumerateStage) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli
m.AckHandle = bf.ReadUint32() m.AckHandle = bf.ReadUint32()
m.Unk0 = bf.ReadUint8() m.Unk0 = bf.ReadUint8()
bf.ReadUint8() bf.ReadUint8()
m.StageID = stringsupport.SJISToUTF8(bf.ReadNullTerminatedBytes()) m.StagePrefix = stringsupport.SJISToUTF8(bf.ReadNullTerminatedBytes())
return nil return nil
} }

View File

@@ -369,7 +369,7 @@ func handleMsgSysEnumerateStage(s *Session, p mhfpacket.MHFPacket) {
continue continue
} }
if !strings.Contains(stage.id, pkt.StageID) { if !strings.Contains(stage.id, pkt.StagePrefix) {
continue continue
} }