mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-22 18:55:29 +00:00
[nx] pfs::kAlignLen renamed to pfs::kHeaderAlign
This commit is contained in:
parent
ee04bcdc8d
commit
886d51f63c
|
@ -9,7 +9,7 @@ namespace nx
|
|||
{
|
||||
const std::string kPfsSig = "PFS0";
|
||||
const std::string kHashedPfsSig = "HFS0";
|
||||
static const size_t kAlignLen = 64;
|
||||
static const size_t kHeaderAlign = 64;
|
||||
}
|
||||
|
||||
#pragma pack(push,1)
|
||||
|
|
|
@ -24,7 +24,7 @@ void nx::PfsHeader::exportBinary()
|
|||
name_table_size += mFileList[i].name.length() + 1;
|
||||
}
|
||||
|
||||
size_t pfs_header_size = align(sizeof(sPfsHeader) + getFileEntrySize(mFsType) * mFileList.getSize() + name_table_size, pfs::kAlignLen);
|
||||
size_t pfs_header_size = align(sizeof(sPfsHeader) + getFileEntrySize(mFsType) * mFileList.getSize() + name_table_size, pfs::kHeaderAlign);
|
||||
|
||||
// align name_table_size
|
||||
name_table_size = pfs_header_size - (sizeof(sPfsHeader) + getFileEntrySize(mFsType) * mFileList.getSize());
|
||||
|
|
Loading…
Reference in a new issue