diff options
| author | Mat M <mathew1800@gmail.com> | 2016-12-08 06:06:05 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-08 06:06:05 -0500 |
| commit | d7dc854b505b5c3c604ed07b7c128726737c391c (patch) | |
| tree | 820bdb640091e5726e4c52d42f819956f82bfd28 /Source/Core/DiscIO/NANDContentLoader.cpp | |
| parent | 7192789c1162e2deb5923151d05158f459448ab9 (diff) | |
| parent | 31ccfffd386cdf7bfafdccda240a179431ecc98c (diff) | |
Merge pull request #4482 from leoetlino/align
Common: Add alignment header
Diffstat (limited to 'Source/Core/DiscIO/NANDContentLoader.cpp')
| -rw-r--r-- | Source/Core/DiscIO/NANDContentLoader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/NANDContentLoader.cpp b/Source/Core/DiscIO/NANDContentLoader.cpp index 4a67f09405..5b3057efbf 100644 --- a/Source/Core/DiscIO/NANDContentLoader.cpp +++ b/Source/Core/DiscIO/NANDContentLoader.cpp @@ -14,11 +14,11 @@ #include <utility> #include <vector> +#include "Common/Align.h" #include "Common/CommonFuncs.h" #include "Common/CommonTypes.h" #include "Common/FileUtil.h" #include "Common/Logging/Log.h" -#include "Common/MathUtil.h" #include "Common/MsgHandler.h" #include "Common/NandPaths.h" #include "Common/StringUtil.h" @@ -264,7 +264,7 @@ void CNANDContentLoader::InitializeContentEntries(const std::vector<u8>& tmd, if (m_IsWAD) { - u32 rounded_size = ROUND_UP(content.m_Size, 0x40); + u32 rounded_size = Common::AlignUp(content.m_Size, 0x40); iv.fill(0); std::copy(&tmd[entry_offset + 0x01E8], &tmd[entry_offset + 0x01E8 + 2], iv.begin()); |
