mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Rename FileSystemProxy to FileSystemProxyImpl
This commit is contained in:
parent
2bd7bb7892
commit
4113bc2d36
5 changed files with 15 additions and 15 deletions
|
@ -4,7 +4,7 @@ using LibHac.FsSrv;
|
|||
namespace LibHac.Fs
|
||||
{
|
||||
/// <summary>
|
||||
/// The default access logger that will output to the SD card via <see cref="FileSystemProxy"/>.
|
||||
/// The default access logger that will output to the SD card via <see cref="FileSystemProxyImpl"/>.
|
||||
/// </summary>
|
||||
public class SdCardAccessLog : IAccessLog
|
||||
{
|
||||
|
|
|
@ -14,7 +14,7 @@ using RightsId = LibHac.Fs.RightsId;
|
|||
|
||||
namespace LibHac.FsSrv
|
||||
{
|
||||
public class FileSystemProxyCore
|
||||
public class FileSystemProxyCoreImpl
|
||||
{
|
||||
internal FileSystemProxyConfiguration Config { get; }
|
||||
private FileSystemCreators FsCreators => Config.FsCreatorInterfaces;
|
||||
|
@ -33,7 +33,7 @@ namespace LibHac.FsSrv
|
|||
|
||||
internal ISaveDataIndexerManager SaveDataIndexerManager { get; private set; }
|
||||
|
||||
public FileSystemProxyCore(FileSystemProxyConfiguration config, ExternalKeySet externalKeys, IDeviceOperator deviceOperator)
|
||||
public FileSystemProxyCoreImpl(FileSystemProxyConfiguration config, ExternalKeySet externalKeys, IDeviceOperator deviceOperator)
|
||||
{
|
||||
Config = config;
|
||||
ProgramRegistry = new ProgramRegistryImpl(Config.ProgramRegistryServiceImpl);
|
|
@ -15,9 +15,9 @@ using LibHac.Util;
|
|||
|
||||
namespace LibHac.FsSrv
|
||||
{
|
||||
public class FileSystemProxy : IFileSystemProxy, IFileSystemProxyForLoader
|
||||
public class FileSystemProxyImpl : IFileSystemProxy, IFileSystemProxyForLoader
|
||||
{
|
||||
private FileSystemProxyCore FsProxyCore { get; }
|
||||
private FileSystemProxyCoreImpl FsProxyCore { get; }
|
||||
internal HorizonClient Hos { get; }
|
||||
|
||||
public ulong CurrentProcess { get; private set; }
|
||||
|
@ -27,7 +27,7 @@ namespace LibHac.FsSrv
|
|||
public FsPath SaveDataRootPath { get; }
|
||||
public bool AutoCreateSaveData { get; private set; }
|
||||
|
||||
internal FileSystemProxy(HorizonClient horizonClient, FileSystemProxyCore fsProxyCore)
|
||||
internal FileSystemProxyImpl(HorizonClient horizonClient, FileSystemProxyCoreImpl fsProxyCore)
|
||||
{
|
||||
FsProxyCore = fsProxyCore;
|
||||
Hos = horizonClient;
|
|
@ -12,7 +12,7 @@ namespace LibHac.FsSrv
|
|||
{
|
||||
internal const ulong SaveIndexerId = 0x8000000000000000;
|
||||
|
||||
private FileSystemProxyCore FsProxyCore { get; }
|
||||
private FileSystemProxyCoreImpl FsProxyCore { get; }
|
||||
|
||||
/// <summary>The client instance to be used for internal operations like save indexer access.</summary>
|
||||
public HorizonClient Hos { get; }
|
||||
|
@ -42,12 +42,12 @@ namespace LibHac.FsSrv
|
|||
|
||||
FileSystemProxyConfiguration fspConfig = InitializeFileSystemProxyConfiguration(config);
|
||||
|
||||
FsProxyCore = new FileSystemProxyCore(fspConfig, externalKeySet, config.DeviceOperator);
|
||||
FsProxyCore = new FileSystemProxyCoreImpl(fspConfig, externalKeySet, config.DeviceOperator);
|
||||
|
||||
FsProxyCore.SetSaveDataIndexerManager(new SaveDataIndexerManager(Hos.Fs, SaveIndexerId,
|
||||
new ArrayPoolMemoryResource(), new SdHandleManager(), false));
|
||||
|
||||
FileSystemProxy fsProxy = GetFileSystemProxyServiceObject();
|
||||
FileSystemProxyImpl fsProxy = GetFileSystemProxyServiceObject();
|
||||
fsProxy.SetCurrentProcess(Hos.Os.GetCurrentProcessId().Value).IgnoreResult();
|
||||
fsProxy.CleanUpTemporaryStorage().IgnoreResult();
|
||||
|
||||
|
@ -101,14 +101,14 @@ namespace LibHac.FsSrv
|
|||
return fspConfig;
|
||||
}
|
||||
|
||||
private FileSystemProxy GetFileSystemProxyServiceObject()
|
||||
private FileSystemProxyImpl GetFileSystemProxyServiceObject()
|
||||
{
|
||||
return new FileSystemProxy(Hos, FsProxyCore);
|
||||
return new FileSystemProxyImpl(Hos, FsProxyCore);
|
||||
}
|
||||
|
||||
private FileSystemProxy GetFileSystemProxyForLoaderServiceObject()
|
||||
private FileSystemProxyImpl GetFileSystemProxyForLoaderServiceObject()
|
||||
{
|
||||
return new FileSystemProxy(Hos, FsProxyCore);
|
||||
return new FileSystemProxyImpl(Hos, FsProxyCore);
|
||||
}
|
||||
|
||||
private ProgramRegistryImpl GetProgramRegistryServiceObject()
|
||||
|
|
|
@ -25,11 +25,11 @@ namespace LibHac.FsSrv.Impl
|
|||
|
||||
private static readonly object Locker = new object();
|
||||
|
||||
private FileSystemProxy FsProxy { get; }
|
||||
private FileSystemProxyImpl FsProxy { get; }
|
||||
private List<IFileSystem> FileSystems { get; } = new List<IFileSystem>(MaxFileSystemCount);
|
||||
private long CommitCount { get; set; }
|
||||
|
||||
public MultiCommitManager(FileSystemProxy fsProxy)
|
||||
public MultiCommitManager(FileSystemProxyImpl fsProxy)
|
||||
{
|
||||
FsProxy = fsProxy;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue