/// <summary> /// Initializes a new instance of the <see cref="Launchpad.Launcher.Handlers.LauncherHandler"/> class. /// </summary> public LauncherHandler() { this.Patch = PatchProtocolProvider.GetHandler(); this.Patch.ModuleDownloadProgressChanged += OnLauncherDownloadProgressChanged; this.Patch.ModuleInstallationFinished += OnLauncherDownloadFinished; }
/// <summary> /// Initializes a new instance of the <see cref="Launchpad.Launcher.Handlers.LauncherHandler"/> class. /// </summary> public LauncherHandler() { Patch = Config.GetPatchProtocol(); Patch.ModuleDownloadProgressChanged += OnLauncherDownloadProgressChanged; Patch.ModuleInstallationFinished += OnLauncherDownloadFinished; }
public GameHandler() { Patch = Config.GetPatchProtocol(); if (Patch != null) { Patch.ModuleDownloadProgressChanged += OnModuleInstallProgressChanged; Patch.ModuleVerifyProgressChanged += OnModuleInstallProgressChanged; Patch.ModuleInstallationFinished += OnModuleInstallationFinished; Patch.ModuleInstallationFailed += OnModuleInstallationFailed; } }
/// <summary> /// Determines whether this instance can connect to a patching service. /// </summary> /// <returns><c>true</c> if this instance can connect to a patching service; otherwise, <c>false</c>.</returns> public bool CanPatch() { PatchProtocolHandler Patch = Config.GetPatchProtocol(); if (Patch != null) { return(Patch.CanPatch()); } else { return(false); } }
/// <summary> /// Initializes a new instance of the <see cref="GameHandler"/> class. /// </summary> public GameHandler() { this.Patch = PatchProtocolProvider.GetHandler(); if (this.Patch == null) { return; } this.Patch.ModuleDownloadProgressChanged += OnModuleInstallProgressChanged; this.Patch.ModuleVerifyProgressChanged += OnModuleInstallProgressChanged; this.Patch.ModuleUpdateProgressChanged += OnModuleInstallProgressChanged; this.Patch.ModuleInstallationFinished += OnModuleInstallationFinished; this.Patch.ModuleInstallationFailed += OnModuleInstallationFailed; }
/// <summary> /// Checks whether or not the server provides binaries and patches for the specified platform. /// </summary> /// <returns><c>true</c>, if the server does provide files for the platform, <c>false</c> otherwise.</returns> /// <param name="Platform">Platform.</param> public bool IsPlatformAvailable(ESystemTarget Platform) { PatchProtocolHandler Patch = Config.GetPatchProtocol(); return(Patch.IsPlatformAvailable(Platform)); }
/// <summary> /// Determines whether the launcher is outdated. /// </summary> /// <returns><c>true</c> if the launcher is outdated; otherwise, <c>false</c>.</returns> public bool IsLauncherOutdated() { PatchProtocolHandler Patch = Config.GetPatchProtocol(); return(Patch.IsLauncherOutdated()); }
/// <summary> /// Initializes a new instance of the <see cref="Launchpad.Launcher.Handlers.LauncherHandler"/> class. /// </summary> public LauncherHandler() { Patch = Config.GetPatchProtocol(); }
/// <summary> /// Initializes a new instance of the <see cref="ChecksHandler"/> class. /// </summary> public ChecksHandler() { this.Patch = PatchProtocolProvider.GetHandler(); }
/// <summary> /// Determines whether this instance can connect to a patching service. /// </summary> /// <returns><c>true</c> if this instance can connect to a patching service; otherwise, <c>false</c>.</returns> public bool CanPatch() { PatchProtocolHandler patchService = Configuration.GetPatchProtocol(); return(patchService != null && patchService.CanPatch()); }
/// <summary> /// Checks whether or not the server provides binaries and patches for the specified platform. /// </summary> /// <returns><c>true</c>, if the server does provide files for the platform, <c>false</c> otherwise.</returns> /// <param name="platform">platform.</param> public bool IsPlatformAvailable(ESystemTarget platform) { PatchProtocolHandler patchService = Configuration.GetPatchProtocol(); return(patchService.IsPlatformAvailable(platform)); }
/// <summary> /// Determines whether the launcher is outdated. /// </summary> /// <returns><c>true</c> if the launcher is outdated; otherwise, <c>false</c>.</returns> public bool IsLauncherOutdated() { PatchProtocolHandler patchService = Configuration.GetPatchProtocol(); return(patchService.IsModuleOutdated(EModule.Launcher)); }
/// <summary> /// Determines whether the game is outdated. /// </summary> /// <returns><c>true</c> if the game is outdated; otherwise, <c>false</c>.</returns> public bool IsGameOutdated() { PatchProtocolHandler patchService = this.Configuration.GetPatchProtocol(); return(patchService.IsModuleOutdated(EModule.Game)); }