Change back crc to u16 and set padding to 0.
This commit is contained in:
parent
650078f70f
commit
b45d904f64
@ -191,17 +191,20 @@ static_assert(std::is_trivially_copyable_v<MiiData>, "MiiData must be trivially
|
|||||||
struct ChecksummedMiiData {
|
struct ChecksummedMiiData {
|
||||||
private:
|
private:
|
||||||
MiiData mii_data;
|
MiiData mii_data;
|
||||||
u32_be crc16;
|
u16 padding;
|
||||||
|
u16_be crc16;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ChecksummedMiiData& operator=(const MiiData& data) {
|
ChecksummedMiiData& operator=(const MiiData& data) {
|
||||||
mii_data = data;
|
mii_data = data;
|
||||||
|
padding = 0;
|
||||||
FixChecksum();
|
FixChecksum();
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
ChecksummedMiiData& operator=(MiiData&& data) {
|
ChecksummedMiiData& operator=(MiiData&& data) {
|
||||||
mii_data = std::move(data);
|
mii_data = std::move(data);
|
||||||
|
padding = 0;
|
||||||
FixChecksum();
|
FixChecksum();
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user