diff options
author | Liam <byteslice@airmail.cc> | 2022-08-19 23:16:33 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-08-19 23:16:33 +0200 |
commit | 39cf6abd942f4f57890317ad8f49a7649ba55288 (patch) | |
tree | 0caaaa9f989284e7134774a8de9aeac56ceb7e5e /src/core/file_sys/ips_layer.cpp | |
parent | Merge pull request #8772 from liushuyu/remove-common-intrin (diff) | |
download | yuzu-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.cpp | 4 |
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 |