diff --git a/lib/libnx-hb/include/nx/AssetHeader.h b/lib/libnx-hb/include/nx/AssetHeader.h index d1d8db3..61deecb 100644 --- a/lib/libnx-hb/include/nx/AssetHeader.h +++ b/lib/libnx-hb/include/nx/AssetHeader.h @@ -35,9 +35,9 @@ namespace nx AssetHeader(); AssetHeader(const AssetHeader& other); + void operator=(const AssetHeader& other); bool operator==(const AssetHeader& other) const; bool operator!=(const AssetHeader& other) const; - void operator=(const AssetHeader& other); // export/import binary void toBytes(); diff --git a/lib/libnx-hb/source/AssetHeader.cpp b/lib/libnx-hb/source/AssetHeader.cpp index 7ddb714..395ec2f 100644 --- a/lib/libnx-hb/source/AssetHeader.cpp +++ b/lib/libnx-hb/source/AssetHeader.cpp @@ -10,6 +10,14 @@ nx::AssetHeader::AssetHeader(const AssetHeader& other) *this = other; } +void nx::AssetHeader::operator=(const AssetHeader& other) +{ + mRawBinary = other.mRawBinary; + mIconInfo = other.mIconInfo; + mNacpInfo = other.mNacpInfo; + mRomfsInfo = other.mRomfsInfo; +} + bool nx::AssetHeader::operator==(const AssetHeader& other) const { return (mIconInfo == other.mIconInfo) \ @@ -22,14 +30,6 @@ bool nx::AssetHeader::operator!=(const AssetHeader& other) const return !(*this == other); } -void nx::AssetHeader::operator=(const AssetHeader& other) -{ - mRawBinary = other.mRawBinary; - mIconInfo = other.mIconInfo; - mNacpInfo = other.mNacpInfo; - mRomfsInfo = other.mRomfsInfo; -} - void nx::AssetHeader::toBytes() { mRawBinary.alloc(sizeof(sAssetHeader));