summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/ips_layer.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-08-19 23:16:33 +0200
committerLiam <byteslice@airmail.cc>2022-08-19 23:16:33 +0200
commit39cf6abd942f4f57890317ad8f49a7649ba55288 (patch)
tree0caaaa9f989284e7134774a8de9aeac56ceb7e5e /src/core/file_sys/ips_layer.cpp
parentMerge pull request #8772 from liushuyu/remove-common-intrin (diff)
downloadyuzu-39cf6abd942f4f57890317ad8f49a7649ba55288.tar
yuzu-39cf6abd942f4f57890317ad8f49a7649ba55288.tar.gz
yuzu-39cf6abd942f4f57890317ad8f49a7649ba55288.tar.bz2
yuzu-39cf6abd942f4f57890317ad8f49a7649ba55288.tar.lz
yuzu-39cf6abd942f4f57890317ad8f49a7649ba55288.tar.xz
yuzu-39cf6abd942f4f57890317ad8f49a7649ba55288.tar.zst
yuzu-39cf6abd942f4f57890317ad8f49a7649ba55288.zip
Diffstat (limited to 'src/core/file_sys/ips_layer.cpp')
-rw-r--r--src/core/file_sys/ips_layer.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/file_sys/ips_layer.cpp b/src/core/file_sys/ips_layer.cpp
index a33dbe94b..c1a484497 100644
--- a/src/core/file_sys/ips_layer.cpp
+++ b/src/core/file_sys/ips_layer.cpp
@@ -217,9 +217,7 @@ void IPSwitchCompiler::Parse() {
break;
} else if (StartsWith(line, "@nsobid-")) {
// NSO Build ID Specifier
- auto raw_build_id = line.substr(8);
- if (raw_build_id.size() != 0x40)
- raw_build_id.resize(0x40, '0');
+ 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