private async Task <bool> CheckForUpdatesInternal(int version = -1, bool overrideSettings = false) { if (ValidateAction()) { return(false); } Patches = new List <Patch>(); PatchIgnore.Initialize(ClientProfile.Location); _latestVersion = await NexonApi.Instance.GetLatestVersion(); _version = _latestVersion; await GetManifestJson(_version); FileDownloadInfos = await GetFileDownloadInfo(); if (version < _latestVersion || overrideSettings || (version == _latestVersion && PatchSettingsManager.Instance.PatcherSettings.ForceUpdateCheck)) { GetPatchList(overrideSettings); return(Patches.Count > 0); } return(false); }
public NxlPatcher(IClientProfile clientProfile, IServerProfile serverProfile, PatcherContext patcherContext) : base(clientProfile, serverProfile, patcherContext) { PatcherType = DefaultPatcherTypes.NxLauncher; PatchSettingsManager.Initialize(); PatchIgnore = new PatchIgnore(PatcherContext); }