コード例 #1
0
        public static GameLauncherProcessInternal.GameLauncher.GameLaunchSpec ToLaunchSpec(
            this LaunchGameWithSteamLegacyInfo info)
        {
            var spec = ((LaunchGameWithSteamInfo)info).ToLaunchSpec();

            spec.LegacyLaunch = true;

            return(spec);
        }
コード例 #2
0
        public static async Task <LaunchGameWithSteamLegacyInfo> FakeLaunchGameWithSteamLegacy(
            this ILaunchWithSteamLegacy mediator, RealVirtualityGame game)
        {
            LaunchGameWithSteamLegacyInfo parameters = null;

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

            return(parameters);
        }
コード例 #3
0
 public Task <Process> LaunchInternal(LaunchGameWithSteamLegacyInfo info) => PerformUpdaterAction(info,
                                                                                                  new SULaunchGameSteamLegacyArgumentsBuilder(info, GetAndValidateSteamPath(info.SteamDRM))
                                                                                                  .Build());
コード例 #4
0
 public Task <Process> LaunchInternal(LaunchGameWithSteamLegacyInfo info)
 {
     throw new NotImplementedException();
 }
コード例 #5
0
 public SULaunchGameSteamLegacyArgumentsBuilder(LaunchGameWithSteamLegacyInfo spec,
                                                IAbsoluteDirectoryPath steamPath)
     : base(spec, steamPath)
 {
 }
コード例 #6
0
 public Task <Process> Launch(LaunchGameWithSteamLegacyInfo spec) => LaunchInternal(spec);
コード例 #7
0
 public Task<Process> Launch(LaunchGameWithSteamLegacyInfo spec) {
     return LaunchInternal(spec);
 }
コード例 #8
0
 public async Task <Process> LaunchInternal(LaunchGameWithSteamLegacyInfo info)
 => Process.GetProcessById(CreateLauncher().LaunchGame(info.ToLaunchSpec()));
コード例 #9
0
 protected Task <Process> LaunchInternal(LaunchGameWithSteamLegacyInfo info) => _gameLauncherInfra.LaunchInternal(info);