/// <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="Launchpad.Launcher.Handlers.LauncherHandler"/> class. /// </summary> public LauncherHandler() { this.Patch = Config.GetPatchProtocol(); this.Patch.ModuleDownloadProgressChanged += OnLauncherDownloadProgressChanged; this.Patch.ModuleInstallationFinished += OnLauncherDownloadFinished; }
public GameHandler() { Patch = Config.GetPatchProtocol(); if (Patch != null) { Patch.ModuleDownloadProgressChanged += OnModuleInstallProgressChanged; Patch.ModuleVerifyProgressChanged += OnModuleInstallProgressChanged; Patch.ModuleInstallationFinished += OnModuleInstallationFinished; Patch.ModuleInstallationFailed += OnModuleInstallationFailed; } }
/// <summary> /// Initializes a new instance of the <see cref="Launchpad.Launcher.Handlers.LauncherHandler"/> class. /// </summary> public LauncherHandler() { Patch = Config.GetPatchProtocol(); }
/// <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()); }