mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Rename SdFs to SwitchFs
This commit is contained in:
parent
9f9df45ff6
commit
5a793d61d6
3 changed files with 8 additions and 8 deletions
|
@ -8,7 +8,7 @@ using LibHac.Streams;
|
||||||
|
|
||||||
namespace LibHac
|
namespace LibHac
|
||||||
{
|
{
|
||||||
public class SdFs : IDisposable
|
public class SwitchFs : IDisposable
|
||||||
{
|
{
|
||||||
public Keyset Keyset { get; }
|
public Keyset Keyset { get; }
|
||||||
public IFileSystem Fs { get; }
|
public IFileSystem Fs { get; }
|
||||||
|
@ -18,7 +18,7 @@ namespace LibHac
|
||||||
public Dictionary<ulong, Title> Titles { get; } = new Dictionary<ulong, Title>();
|
public Dictionary<ulong, Title> Titles { get; } = new Dictionary<ulong, Title>();
|
||||||
public Dictionary<ulong, Application> Applications { get; } = new Dictionary<ulong, Application>();
|
public Dictionary<ulong, Application> Applications { get; } = new Dictionary<ulong, Application>();
|
||||||
|
|
||||||
public SdFs(Keyset keyset, IFileSystem fs)
|
public SwitchFs(Keyset keyset, IFileSystem fs)
|
||||||
{
|
{
|
||||||
Fs = fs;
|
Fs = fs;
|
||||||
Keyset = keyset;
|
Keyset = keyset;
|
|
@ -48,7 +48,7 @@ namespace NandReader
|
||||||
var keyset = OpenKeyset();
|
var keyset = OpenKeyset();
|
||||||
var nand = new Nand(stream, keyset);
|
var nand = new Nand(stream, keyset);
|
||||||
var user = nand.OpenSystemPartition();
|
var user = nand.OpenSystemPartition();
|
||||||
var sdfs = new SdFs(keyset, user);
|
var sdfs = new SwitchFs(keyset, user);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -154,7 +154,7 @@ namespace hactoolnet
|
||||||
|
|
||||||
private static void ProcessSwitchFs(Context ctx)
|
private static void ProcessSwitchFs(Context ctx)
|
||||||
{
|
{
|
||||||
var switchFs = new SdFs(ctx.Keyset, new FileSystem(ctx.Options.InFile));
|
var switchFs = new SwitchFs(ctx.Keyset, new FileSystem(ctx.Options.InFile));
|
||||||
|
|
||||||
if (ctx.Options.ListTitles)
|
if (ctx.Options.ListTitles)
|
||||||
{
|
{
|
||||||
|
@ -510,7 +510,7 @@ namespace hactoolnet
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void SaveTitle(Context ctx, SdFs switchFs)
|
private static void SaveTitle(Context ctx, SwitchFs switchFs)
|
||||||
{
|
{
|
||||||
var id = ctx.Options.TitleId;
|
var id = ctx.Options.TitleId;
|
||||||
if (id == 0)
|
if (id == 0)
|
||||||
|
@ -540,7 +540,7 @@ namespace hactoolnet
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void CreateNsp(Context ctx, SdFs switchFs)
|
private static void CreateNsp(Context ctx, SwitchFs switchFs)
|
||||||
{
|
{
|
||||||
var id = ctx.Options.TitleId;
|
var id = ctx.Options.TitleId;
|
||||||
if (id == 0)
|
if (id == 0)
|
||||||
|
@ -587,7 +587,7 @@ namespace hactoolnet
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ListTitles(SdFs sdfs)
|
static void ListTitles(SwitchFs sdfs)
|
||||||
{
|
{
|
||||||
foreach (var title in sdfs.Titles.Values.OrderBy(x => x.Id))
|
foreach (var title in sdfs.Titles.Values.OrderBy(x => x.Id))
|
||||||
{
|
{
|
||||||
|
@ -614,7 +614,7 @@ namespace hactoolnet
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static string ListApplications(SdFs sdfs)
|
static string ListApplications(SwitchFs sdfs)
|
||||||
{
|
{
|
||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue