mirror of
https://github.com/jakcron/nstool
synced 2024-12-25 06:01:12 +00:00
[nx-hb] Change order of methods to match style.
This commit is contained in:
parent
4d6eb6f694
commit
81a8aaf68a
2 changed files with 9 additions and 9 deletions
|
@ -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();
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue