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:
Houmgaor
2026-02-18 22:57:18 +01:00
parent 0d07a1f698
commit 151af1a202
2 changed files with 4 additions and 4 deletions

View File

@@ -455,8 +455,8 @@ func TestParseLargeMsgMhfUpdateHouse(t *testing.T) {
if pkt.State != tt.state {
t.Errorf("State = %d, want %d", pkt.State, tt.state)
}
if pkt.Unk1 != 1 {
t.Errorf("Unk1 = %d, want 1", pkt.Unk1)
if pkt.HasPassword != 1 {
t.Errorf("HasPassword = %d, want 1", pkt.HasPassword)
}
if pkt.Password != tt.password {
t.Errorf("Password = %q, want %q", pkt.Password, tt.password)