diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2022-08-21 14:06:06 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-21 14:06:06 -0400 |
| commit | d16ea1c63ca2858d4230fa5c04fddf6b1345cd3c (patch) | |
| tree | e8a2fe75e33967f854e76933bee2a92ee868d65c /src/core/file_sys/patch_manager.cpp | |
| parent | a903de9ec810eadb32b0c3117093e12d817a4f56 (diff) | |
| parent | 0676dbfea191f5d9f0a220e5716533dcab98b594 (diff) | |
Merge pull request #8799 from liamwhite/where-did-the-padding-go
core/file_sys: fix alignment of BuildId
Diffstat (limited to 'src/core/file_sys/patch_manager.cpp')
| -rw-r--r-- | src/core/file_sys/patch_manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index 41348ab265..4c80e13a92 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp @@ -191,7 +191,7 @@ VirtualDir PatchManager::PatchExeFS(VirtualDir exefs) const { std::vector<VirtualFile> PatchManager::CollectPatches(const std::vector<VirtualDir>& patch_dirs, const std::string& build_id) const { const auto& disabled = Settings::values.disabled_addons[title_id]; - const auto nso_build_id = fmt::format("{:0>64}", build_id); + const auto nso_build_id = fmt::format("{:0<64}", build_id); std::vector<VirtualFile> out; out.reserve(patch_dirs.size()); @@ -206,7 +206,7 @@ std::vector<VirtualFile> PatchManager::CollectPatches(const std::vector<VirtualD auto name = file->GetName(); const auto this_build_id = - fmt::format("{:0>64}", name.substr(0, name.find('.'))); + fmt::format("{:0<64}", name.substr(0, name.find('.'))); if (nso_build_id == this_build_id) out.push_back(file); } else if (file->GetExtension() == "pchtxt") { |
