From e76f480575eabe5b14b13276ba599db968df9c70 Mon Sep 17 00:00:00 2001 From: PabloMK7 Date: Fri, 28 Jul 2023 22:15:47 +0200 Subject: [PATCH] Make miidata a struct and crc16 a u32_be as per switch code. --- src/core/hle/mii.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core/hle/mii.h b/src/core/hle/mii.h index ae1da5e98a..556c612540 100644 --- a/src/core/hle/mii.h +++ b/src/core/hle/mii.h @@ -9,8 +9,7 @@ namespace Mii { #pragma pack(push, 1) // Reference: https://github.com/devkitPro/libctru/blob/master/libctru/include/3ds/mii.h -class MiiData { -public: +struct MiiData { u8 magic; ///< Always 3? /// Mii options @@ -215,8 +214,7 @@ public: private: MiiData mii_data; - [[maybe_unused]] INSERT_PADDING_BYTES(0x2); - u16_be crc16; + u32_be crc16; template void serialize(Archive& ar, const unsigned int) {