diff --git a/lib/libnx/include/nx/pfs.h b/lib/libnx/include/nx/pfs.h index 4666488..d0d79d0 100644 --- a/lib/libnx/include/nx/pfs.h +++ b/lib/libnx/include/nx/pfs.h @@ -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) diff --git a/lib/libnx/source/PfsHeader.cpp b/lib/libnx/source/PfsHeader.cpp index 1b5755e..5125a3b 100644 --- a/lib/libnx/source/PfsHeader.cpp +++ b/lib/libnx/source/PfsHeader.cpp @@ -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());