Rename FileSystemProxy to FileSystemProxyImpl

This commit is contained in:
Alex Barney 2020-09-06 00:27:09 -07:00
parent 2bd7bb7892
commit 4113bc2d36
5 changed files with 15 additions and 15 deletions

View file

@ -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
{

View file

@ -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);

View file

@ -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;

View file

@ -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()

View file

@ -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;
}