Skip to content

Commit

Permalink
chore: nss ext toLowerCase
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyg603 committed Jul 12, 2024
1 parent 5a8fb75 commit 94645b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function getUUID(section: Buffer, path: string, offset = 0) {

// Nintendo GUIDs seem to be 32 or 40 hex chars 0 padded to 64 hex chars
// Until we know more, pad it ourselves with this hacky workaround
if (extname(path) === '.nss') {
if (extname(path)?.toLowerCase() === '.nss') {
uuid = uuid.padEnd(64, '0');
}

Expand Down

0 comments on commit 94645b6

Please sign in to comment.