public RealVirtualityLauncher(IMediator mediator, IGameLauncherProcess processManager,
     IPathConfiguration pathConfiguration, IFileWriter writer)
     : base(mediator, processManager) {
     Contract.Requires<ArgumentNullException>(writer != null);
     _writer = writer;
     _parPath = pathConfiguration.LocalDataPath.GetChildDirectoryWithName("games");
 }
示例#2
0
 internal static byte[] GetPathArray(string path, IPathConfiguration pathConfig)
 {
     if (string.IsNullOrWhiteSpace(path) || path.Length >= pathConfig.MaxPathLength)
     {
         throw new ArgumentException(nameof(path));
     }
     return(pathConfig.Encoding.GetBytes(path.PadRight(pathConfig.MaxPathLength, pathConfig.PaddingCharacter)));
 }
 public RealVirtualityLauncher(IGameLauncherProcess processManager,
                               IPathConfiguration pathConfiguration, IFileWriter writer)
     : base(processManager)
 {
     if (writer == null)
     {
         throw new ArgumentNullException(nameof(writer));
     }
     _writer  = writer;
     _parPath = pathConfiguration.LocalDataPath.GetChildDirectoryWithName("games");
 }
        public RsyncLauncher(IProcessManager processManager, IPathConfiguration configuration,
            RsyncOutputParser parser) {
            if (processManager == null)
                throw new ArgumentNullException(nameof(processManager));
            if (configuration == null)
                throw new ArgumentNullException(nameof(configuration));

            _processManager = processManager;
            _parser = parser;
            _binPath = configuration.ToolCygwinBinPath.GetChildFileWithName("rsync.exe");
            _sshBinPath = configuration.ToolCygwinBinPath.GetChildFileWithName("ssh.exe");
        }
示例#5
0
        public ZsyncLauncher(IProcessManager processManager, IPathConfiguration configuration,
            ZsyncOutputParser parser, IAuthProvider authProvider) {
            if (processManager == null)
                throw new ArgumentNullException("processManager");
            if (configuration == null)
                throw new ArgumentNullException("configuration");

            _authProvider = authProvider;

            _processManager = processManager;
            _parser = parser;
            _binPath = configuration.ToolCygwinBinPath.GetChildFileWithName("zsync.exe");
        }
示例#6
0
        public RsyncLauncher(IProcessManager processManager, IPathConfiguration configuration,
                             RsyncOutputParser parser)
        {
            if (processManager == null)
            {
                throw new ArgumentNullException(nameof(processManager));
            }
            if (configuration == null)
            {
                throw new ArgumentNullException(nameof(configuration));
            }

            _processManager = processManager;
            _parser         = parser;
            _binPath        = configuration.ToolCygwinBinPath.GetChildFileWithName("rsync.exe");
            _sshBinPath     = configuration.ToolCygwinBinPath.GetChildFileWithName("ssh.exe");
        }
示例#7
0
 public HostFunctionArguments(IPathConfiguration loaderConfig, IHostArguments loaderArguments)
 {
     LoaderConfig    = loaderConfig;
     LoaderArguments = loaderArguments;
 }
 public GameLauncherProcessExternalUpdater(IProcessManager processManager, IPathConfiguration pathConfiguration) {
     _processManager = processManager;
     _pathConfiguration = pathConfiguration;
 }
 public ImageDownloader(IPathConfiguration pathConfiguration)
 {
     _pathConfiguration = pathConfiguration;
 }
示例#10
0
 internal static byte[] GetPathArray(string path, IPathConfiguration pathConfig, int?pathLength = null)
 {
     return(pathConfig.Encoding.GetBytes(path.PadRight(pathLength ?? pathConfig.MaxPathLength, pathConfig.PaddingCharacter)));
 }