Add the option to initialize Horizon with a FileSystemServer

This commit is contained in:
Alex Barney 2020-04-24 11:35:04 -07:00
parent e80be498e5
commit be29ad714f

View file

@ -20,6 +20,13 @@ namespace LibHac
ServiceManager = new ServiceManager(this);
}
public Horizon(ITimeSpanGenerator timer, FileSystemServer fsServer)
{
Time = timer ?? new StopWatchTimeSpanGenerator();
FileSystemServer = fsServer;
ServiceManager = new ServiceManager(this);
}
private Result OpenFileSystemClient(out FileSystemClient client)
{
if (FileSystemServer is null)