summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-08-21 18:28:36 +0200
committerLiam <byteslice@airmail.cc>2022-08-21 18:28:36 +0200
commit518317b7170db9cf632ce9ac45b50e0d5d52faf6 (patch)
treedd3da140d5a1f1fe9b9c41d980a3fc5034515ca7 /src/core
parentMerge pull request #8790 from liamwhite/too-many-ways-to-name-a-byte-string (diff)
downloadyuzu-518317b7170db9cf632ce9ac45b50e0d5d52faf6.tar
yuzu-518317b7170db9cf632ce9ac45b50e0d5d52faf6.tar.gz
yuzu-518317b7170db9cf632ce9ac45b50e0d5d52faf6.tar.bz2
yuzu-518317b7170db9cf632ce9ac45b50e0d5d52faf6.tar.lz
yuzu-518317b7170db9cf632ce9ac45b50e0d5d52faf6.tar.xz
yuzu-518317b7170db9cf632ce9ac45b50e0d5d52faf6.tar.zst
yuzu-518317b7170db9cf632ce9ac45b50e0d5d52faf6.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/file_sys/ips_layer.cpp2
-rw-r--r--src/core/file_sys/patch_manager.cpp4
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() {
break;
} else if (StartsWith(line, "@nsobid-")) {
// NSO Build ID Specifier
- const auto raw_build_id = fmt::format("{:0>64}", line.substr(8));
+ const auto raw_build_id = fmt::format("{:0<64}", line.substr(8));
nso_build_id = Common::HexStringToArray<0x20>(raw_build_id);
} else if (StartsWith(line, "#")) {
// 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 {
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") {