mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-22 07:32:32 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user