mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-23 03:05:27 +00:00
[nx-hb] Change order of methods to match style.
This commit is contained in:
parent
4d6eb6f694
commit
81a8aaf68a
|
@ -35,9 +35,9 @@ namespace nx
|
||||||
AssetHeader();
|
AssetHeader();
|
||||||
AssetHeader(const AssetHeader& other);
|
AssetHeader(const AssetHeader& other);
|
||||||
|
|
||||||
|
void operator=(const AssetHeader& other);
|
||||||
bool operator==(const AssetHeader& other) const;
|
bool operator==(const AssetHeader& other) const;
|
||||||
bool operator!=(const AssetHeader& other) const;
|
bool operator!=(const AssetHeader& other) const;
|
||||||
void operator=(const AssetHeader& other);
|
|
||||||
|
|
||||||
// export/import binary
|
// export/import binary
|
||||||
void toBytes();
|
void toBytes();
|
||||||
|
|
|
@ -10,6 +10,14 @@ nx::AssetHeader::AssetHeader(const AssetHeader& other)
|
||||||
*this = 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
|
bool nx::AssetHeader::operator==(const AssetHeader& other) const
|
||||||
{
|
{
|
||||||
return (mIconInfo == other.mIconInfo) \
|
return (mIconInfo == other.mIconInfo) \
|
||||||
|
@ -22,14 +30,6 @@ bool nx::AssetHeader::operator!=(const AssetHeader& other) const
|
||||||
return !(*this == other);
|
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()
|
void nx::AssetHeader::toBytes()
|
||||||
{
|
{
|
||||||
mRawBinary.alloc(sizeof(sAssetHeader));
|
mRawBinary.alloc(sizeof(sAssetHeader));
|
||||||
|
|
Loading…
Reference in a new issue