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());