diff options
| -rw-r--r-- | src/core/file_sys/ips_layer.cpp | 2 | ||||
| -rw-r--r-- | src/core/file_sys/patch_manager.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/file_sys/ips_layer.cpp b/src/core/file_sys/ips_layer.cpp index c1a484497..5aab428bb 100644 --- a/src/core/file_sys/ips_layer.cpp +++ b/src/core/file_sys/ips_layer.cpp | |||
| @@ -217,7 +217,7 @@ void IPSwitchCompiler::Parse() { | |||
| 217 | break; | 217 | break; |
| 218 | } else if (StartsWith(line, "@nsobid-")) { | 218 | } else if (StartsWith(line, "@nsobid-")) { |
| 219 | // NSO Build ID Specifier | 219 | // NSO Build ID Specifier |
| 220 | const auto raw_build_id = fmt::format("{:0>64}", line.substr(8)); | 220 | const auto raw_build_id = fmt::format("{:0<64}", line.substr(8)); |
| 221 | nso_build_id = Common::HexStringToArray<0x20>(raw_build_id); | 221 | nso_build_id = Common::HexStringToArray<0x20>(raw_build_id); |
| 222 | } else if (StartsWith(line, "#")) { | 222 | } else if (StartsWith(line, "#")) { |
| 223 | // Mandatory Comment | 223 | // Mandatory Comment |
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index 41348ab26..4c80e13a9 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 { | |||
| 191 | std::vector<VirtualFile> PatchManager::CollectPatches(const std::vector<VirtualDir>& patch_dirs, | 191 | std::vector<VirtualFile> PatchManager::CollectPatches(const std::vector<VirtualDir>& patch_dirs, |
| 192 | const std::string& build_id) const { | 192 | const std::string& build_id) const { |
| 193 | const auto& disabled = Settings::values.disabled_addons[title_id]; | 193 | const auto& disabled = Settings::values.disabled_addons[title_id]; |
| 194 | const auto nso_build_id = fmt::format("{:0>64}", build_id); | 194 | const auto nso_build_id = fmt::format("{:0<64}", build_id); |
| 195 | 195 | ||
| 196 | std::vector<VirtualFile> out; | 196 | std::vector<VirtualFile> out; |
| 197 | out.reserve(patch_dirs.size()); | 197 | out.reserve(patch_dirs.size()); |
| @@ -206,7 +206,7 @@ std::vector<VirtualFile> PatchManager::CollectPatches(const std::vector<VirtualD | |||
| 206 | auto name = file->GetName(); | 206 | auto name = file->GetName(); |
| 207 | 207 | ||
| 208 | const auto this_build_id = | 208 | const auto this_build_id = |
| 209 | fmt::format("{:0>64}", name.substr(0, name.find('.'))); | 209 | fmt::format("{:0<64}", name.substr(0, name.find('.'))); |
| 210 | if (nso_build_id == this_build_id) | 210 | if (nso_build_id == this_build_id) |
| 211 | out.push_back(file); | 211 | out.push_back(file); |
| 212 | } else if (file->GetExtension() == "pchtxt") { | 212 | } else if (file->GetExtension() == "pchtxt") { |