From c4990da8deb2833be19681ad21b2686ed1baa361 Mon Sep 17 00:00:00 2001 From: TheSola10 Date: Tue, 29 Mar 2022 10:18:41 +0200 Subject: [PATCH] Attempting new hex extraction strategy --- extract_nsp.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extract_nsp.ps1 b/extract_nsp.ps1 index 62a2da1..f3b2da3 100644 --- a/extract_nsp.ps1 +++ b/extract_nsp.ps1 @@ -6,7 +6,7 @@ md .\work .\3rdparty\hactool.exe -x $args[0] --pfs0dir=.\work -t pfs0 .\3rdparty\hactool.exe -x .\work\97105c79474118d294c8808a22f39bd3.nca ` - --titlekey=$(Format-Hex -Path .\work\0100d12014fc2000000000000000000b.tik -Count 16 -Offset 0x180) ` + --titlekey=$(((Get-Content .\work\0100d12014fc2000000000000000000b.tik -Encoding byte)[0x180..(0x180+16)] | ForEach-Object ToString X2) -join '' ) ` --romfsdir=.\work Remove-Item .\work\*.nca .\work\*.tik .\work\*.cert