From 94645b616040c287f228d58f14b9b14bb9394016 Mon Sep 17 00:00:00 2001 From: Bobby Galli Date: Fri, 12 Jul 2024 11:21:46 +0000 Subject: [PATCH] chore: nss ext toLowerCase --- src/elf.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elf.ts b/src/elf.ts index 8082967..ca59672 100644 --- a/src/elf.ts +++ b/src/elf.ts @@ -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'); }