public static async Task <LaunchGameInfo> FakeLaunchGame(this ILaunch mediator, Game game)
        {
            LaunchGameInfo parameters = null;

            A.CallTo(() => mediator.Launch(A <LaunchGameInfo> ._))
            .Invokes((LaunchGameInfo x) => parameters = x)
            .ReturnsLazily(() => Task.FromResult(default(Process)));
            await game.Launch((dynamic)mediator);

            return(parameters);
        }
 public Task<Process> Launch(LaunchGameInfo spec) => LaunchInternal(spec);
Exemple #3
0
 public Task <Process> LaunchInternal(LaunchGameInfo info) => PerformUpdaterAction(info, new SULaunchDefaultGameArgumentsBuilder(info).Build());
 public async Task <Process> LaunchInternal(LaunchGameInfo info)
 => Process.Start(new ProcessStartInfo(info.LaunchExecutable.ToString(),
                                       info.StartupParameters.CombineParameters()));
 public SULaunchDefaultGameArgumentsBuilder(LaunchGameInfo spec) : base(spec)
 {
 }
 public Task <Process> Launch(LaunchGameInfo spec) => LaunchInternal(spec);
 public Task<Process> Launch(LaunchGameInfo spec) {
     return LaunchInternal(spec);
 }
 public async Task <Process> LaunchInternal(LaunchGameInfo info)
 => Process.GetProcessById(CreateLauncher().LaunchGame(info.ToLaunchSpec()));
Exemple #9
0
 protected Task <Process> LaunchInternal(LaunchGameInfo info) => _gameLauncherInfra.LaunchInternal(info);