mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-28 02:23:37 +01:00
refactor(mhfpacket): rename MsgMhfUpdateHouse.Unk1 to HasPassword
Verified via Wii U decompilation of putUpdate_house: the field is set to 0 when no password is provided, and 1 when a password string is present. The previous comment "Always 0x01" was inaccurate.
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
||||
type MsgMhfUpdateHouse struct {
|
||||
AckHandle uint32
|
||||
State uint8
|
||||
Unk1 uint8 // Always 0x01
|
||||
HasPassword uint8 // 0 = no password, 1 = has password
|
||||
Password string
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ func (m *MsgMhfUpdateHouse) Opcode() network.PacketID {
|
||||
func (m *MsgMhfUpdateHouse) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
|
||||
m.AckHandle = bf.ReadUint32()
|
||||
m.State = bf.ReadUint8()
|
||||
m.Unk1 = bf.ReadUint8()
|
||||
m.HasPassword = bf.ReadUint8()
|
||||
bf.ReadUint8() // Zeroed
|
||||
bf.ReadUint8() // Zeroed
|
||||
bf.ReadUint8() // Password length
|
||||
|
||||
Reference in New Issue
Block a user