mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Rename old IFileSystem interface
This commit is contained in:
parent
ec4c603afc
commit
bb6c73014b
4 changed files with 6 additions and 6 deletions
|
@ -4,7 +4,7 @@ using DiscUtils.Fat;
|
||||||
|
|
||||||
namespace LibHac.Nand
|
namespace LibHac.Nand
|
||||||
{
|
{
|
||||||
public class NandPartition : IFileSystem
|
public class NandPartition : IFileSystemOld
|
||||||
{
|
{
|
||||||
public FatFileSystem Fs { get; }
|
public FatFileSystem Fs { get; }
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ using System.IO;
|
||||||
|
|
||||||
namespace LibHac
|
namespace LibHac
|
||||||
{
|
{
|
||||||
public class FileSystem : IFileSystem
|
public class FileSystem : IFileSystemOld
|
||||||
{
|
{
|
||||||
public string Root { get; }
|
public string Root { get; }
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace LibHac
|
namespace LibHac
|
||||||
{
|
{
|
||||||
public interface IFileSystem
|
public interface IFileSystemOld
|
||||||
{
|
{
|
||||||
bool FileExists(string path);
|
bool FileExists(string path);
|
||||||
bool DirectoryExists(string path);
|
bool DirectoryExists(string path);
|
|
@ -12,7 +12,7 @@ namespace LibHac
|
||||||
public class SwitchFs : IDisposable
|
public class SwitchFs : IDisposable
|
||||||
{
|
{
|
||||||
public Keyset Keyset { get; }
|
public Keyset Keyset { get; }
|
||||||
public IFileSystem Fs { get; }
|
public IFileSystemOld Fs { get; }
|
||||||
public string ContentsDir { get; }
|
public string ContentsDir { get; }
|
||||||
public string SaveDir { get; }
|
public string SaveDir { get; }
|
||||||
|
|
||||||
|
@ -21,7 +21,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 SwitchFs(Keyset keyset, IFileSystem fs)
|
public SwitchFs(Keyset keyset, IFileSystemOld fs)
|
||||||
{
|
{
|
||||||
Fs = fs;
|
Fs = fs;
|
||||||
Keyset = keyset;
|
Keyset = keyset;
|
||||||
|
@ -232,7 +232,7 @@ namespace LibHac
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static IStorage OpenSplitNcaStorage(IFileSystem fs, string path)
|
internal static IStorage OpenSplitNcaStorage(IFileSystemOld fs, string path)
|
||||||
{
|
{
|
||||||
var files = new List<string>();
|
var files = new List<string>();
|
||||||
var storages = new List<IStorage>();
|
var storages = new List<IStorage>();
|
||||||
|
|
Loading…
Reference in a new issue