From 886d51f63c5e5d00d538be937b7b0db738ff110f Mon Sep 17 00:00:00 2001 From: jakcron Date: Sun, 15 Apr 2018 10:41:29 +0800 Subject: [PATCH] [nx] pfs::kAlignLen renamed to pfs::kHeaderAlign --- lib/libnx/include/nx/pfs.h | 2 +- lib/libnx/source/PfsHeader.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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());