Misc fixes

This commit is contained in:
Alex Barney 2019-05-24 15:24:10 -05:00
parent 1876e3b671
commit 9d03729e8a
5 changed files with 4 additions and 7 deletions

View file

@ -1,6 +1,4 @@
using System; using System;
using System.Collections.Generic;
using System.Text;
namespace LibHac.Fs namespace LibHac.Fs
{ {

View file

@ -39,7 +39,7 @@ namespace LibHac.Fs
lock (Locker) lock (Locker)
{ {
BaseFs.CreateDirectory(path); BaseFs.CreateDirectory(fullPath);
} }
} }

View file

@ -129,11 +129,12 @@ namespace LibHac.Fs.NcaUtils
} }
} }
// ReSharper disable once UnusedParameter.Local // ReSharper disable UnusedParameter.Local
private IStorage OpenAesXtsStorage(IStorage baseStorage, int index) private IStorage OpenAesXtsStorage(IStorage baseStorage, int index)
{ {
throw new NotImplementedException("NCA sections using XTS are not supported yet."); throw new NotImplementedException("NCA sections using XTS are not supported yet.");
} }
// ReSharper restore UnusedParameter.Local
private IStorage OpenAesCtrStorage(IStorage baseStorage, int index) private IStorage OpenAesCtrStorage(IStorage baseStorage, int index)
{ {

View file

@ -491,7 +491,7 @@ namespace LibHac
case 4: return "5.0.0-5.1.0"; case 4: return "5.0.0-5.1.0";
case 5: return "6.0.0-6.0.1"; case 5: return "6.0.0-6.0.1";
case 6: return "6.2.0"; case 6: return "6.2.0";
case 7: return "7.0.0"; case 7: return "7.0.0-8.0.1";
default: return "Unknown"; default: return "Unknown";
} }
} }

View file

@ -31,7 +31,6 @@ namespace hactoolnet
{ {
IStorage baseFile = new LocalStorage(ctx.Options.BaseNca, FileAccess.Read); IStorage baseFile = new LocalStorage(ctx.Options.BaseNca, FileAccess.Read);
baseNca = new Nca(ctx.Keyset, baseFile); baseNca = new Nca(ctx.Keyset, baseFile);
ncaHolder.BaseNca = baseNca;
} }
for (int i = 0; i < 3; i++) for (int i = 0; i < 3; i++)
@ -288,7 +287,6 @@ namespace hactoolnet
private class NcaHolder private class NcaHolder
{ {
public Nca Nca; public Nca Nca;
public Nca BaseNca;
public Validity[] Validities = new Validity[4]; public Validity[] Validities = new Validity[4];
} }
} }