From a76b0ef075e11d8783e7e3fa53181e71513ea1c3 Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Fri, 10 Dec 2021 18:28:56 -0700 Subject: [PATCH] hactoolnet: Fix error when extracting an nca's exefs --- src/hactoolnet/ProcessNca.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hactoolnet/ProcessNca.cs b/src/hactoolnet/ProcessNca.cs index 1d591b52..180ccbb9 100644 --- a/src/hactoolnet/ProcessNca.cs +++ b/src/hactoolnet/ProcessNca.cs @@ -168,8 +168,8 @@ internal static class ProcessNca { FileSystemClient fs = ctx.Horizon.Fs; - using var inputFs = new UniqueRef(OpenFileSystemByType(NcaSectionType.Data)); - using var outputFs = new UniqueRef(new LocalFileSystem(ctx.Options.RomfsOutDir)); + using var inputFs = new UniqueRef(OpenFileSystemByType(NcaSectionType.Code)); + using var outputFs = new UniqueRef(new LocalFileSystem(ctx.Options.ExefsOutDir)); fs.Register("code".ToU8Span(), ref inputFs.Ref()); fs.Register("output".ToU8Span(), ref outputFs.Ref());