[nx] pfs::kAlignLen renamed to pfs::kHeaderAlign

This commit is contained in:
jakcron 2018-04-15 10:41:29 +08:00
parent ee04bcdc8d
commit 886d51f63c
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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());