mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-05-16 00:50:39 -05:00
Common: Don't filter official Mii data
This commit is contained in:
parent
2770b46ab7
commit
7245d1779c
|
|
@ -61,6 +61,11 @@ func SearchOfficialMiiData(id uint64) (bool, int) {
|
|||
// ClearMiiInfo clears any Mii information that generally isn't or shouldn't be shared publicly,
|
||||
// mainly the "console ID", which can be used to determine the Mii creator's MAC address
|
||||
func (mii RawMii) ClearMiiInfo() RawMii {
|
||||
// Don't filter official Mii data
|
||||
if found, _ := SearchOfficialMiiData(binary.BigEndian.Uint64(mii.Data[0x18:0x20])); found {
|
||||
return mii
|
||||
}
|
||||
|
||||
// Clear the create ID, which the MAC address can be derived from
|
||||
binary.BigEndian.PutUint32(mii.Data[0x18:0x1C], 0x80000000)
|
||||
binary.BigEndian.PutUint32(mii.Data[0x1C:0x20], 0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user