mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-22 19:45:46 +00:00
core/file_sys: fix BuildId padding
This commit is contained in:
parent
2e58491c38
commit
39cf6abd94
2 changed files with 7 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue