Exemplo n.º 1
0
        /// <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);
            }
        }
Exemplo n.º 2
0
        /// <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;
        }
Exemplo n.º 3
0
 public GameHandler()
 {
     Patch = Config.GetPatchProtocol();
     if (Patch != null)
     {
         Patch.ModuleDownloadProgressChanged += OnModuleInstallProgressChanged;
         Patch.ModuleVerifyProgressChanged   += OnModuleInstallProgressChanged;
         Patch.ModuleInstallationFinished    += OnModuleInstallationFinished;
         Patch.ModuleInstallationFailed      += OnModuleInstallationFailed;
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Launchpad.Launcher.Handlers.LauncherHandler"/> class.
 /// </summary>
 public LauncherHandler()
 {
     Patch = Config.GetPatchProtocol();
 }
Exemplo n.º 5
0
        /// <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());
        }