hactoolnet: Fix error when extracting an nca's exefs

This commit is contained in:
Alex Barney 2021-12-10 18:28:56 -07:00
parent f80af38c64
commit a76b0ef075

View file

@ -168,8 +168,8 @@ internal static class ProcessNca
{
FileSystemClient fs = ctx.Horizon.Fs;
using var inputFs = new UniqueRef<IFileSystem>(OpenFileSystemByType(NcaSectionType.Data));
using var outputFs = new UniqueRef<IFileSystem>(new LocalFileSystem(ctx.Options.RomfsOutDir));
using var inputFs = new UniqueRef<IFileSystem>(OpenFileSystemByType(NcaSectionType.Code));
using var outputFs = new UniqueRef<IFileSystem>(new LocalFileSystem(ctx.Options.ExefsOutDir));
fs.Register("code".ToU8Span(), ref inputFs.Ref());
fs.Register("output".ToU8Span(), ref outputFs.Ref());