Common: Don't filter official Mii data

This commit is contained in:
Palapeli 2026-04-04 02:04:24 -04:00
parent 2770b46ab7
commit 7245d1779c
No known key found for this signature in database
GPG Key ID: 1FFE8F556A474925

View File

@ -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)