Make miidata a struct and crc16 a u32_be as per switch code.
This commit is contained in:
parent
0f4480a232
commit
e76f480575
@ -9,8 +9,7 @@ namespace Mii {
|
|||||||
|
|
||||||
#pragma pack(push, 1)
|
#pragma pack(push, 1)
|
||||||
// Reference: https://github.com/devkitPro/libctru/blob/master/libctru/include/3ds/mii.h
|
// Reference: https://github.com/devkitPro/libctru/blob/master/libctru/include/3ds/mii.h
|
||||||
class MiiData {
|
struct MiiData {
|
||||||
public:
|
|
||||||
u8 magic; ///< Always 3?
|
u8 magic; ///< Always 3?
|
||||||
|
|
||||||
/// Mii options
|
/// Mii options
|
||||||
@ -215,8 +214,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
MiiData mii_data;
|
MiiData mii_data;
|
||||||
[[maybe_unused]] INSERT_PADDING_BYTES(0x2);
|
u32_be crc16;
|
||||||
u16_be crc16;
|
|
||||||
|
|
||||||
template <class Archive>
|
template <class Archive>
|
||||||
void serialize(Archive& ar, const unsigned int) {
|
void serialize(Archive& ar, const unsigned int) {
|
||||||
|
Loading…
Reference in New Issue
Block a user