mirror of
https://github.com/jakcron/nstool
synced 2024-12-24 13:41:12 +00:00
[nx] pfs::kAlignLen renamed to pfs::kHeaderAlign
This commit is contained in:
parent
ee04bcdc8d
commit
886d51f63c
2 changed files with 2 additions and 2 deletions
|
@ -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