void ProcessAndAddNormalModsWithAdditionalGameRequirements() { foreach (var mod in _nonAiaMods) { ProcessModIfHasAdditionalGameRequirements(mod); } OutputMods.AddRange(_additional); }
void ProcessIronFrontMods() { if (!InputMods.Any(x => ifMainModFolders.ContainsIgnoreCase(x.PackageName))) { return; } InputMods.RemoveAll(IsIronFrontFullOrLiteMod); OutputMods.AddRange(ExistingMods(GetOaPaths().Where(x => x != null).ToArray(), ifModFolders)); }
void HandleA3Mp() { foreach (var a3Mp in Arma2TerrainPacks.Select(m => InputMods .FirstOrDefault(x => x.PackageName.Equals(m, StringComparison.OrdinalIgnoreCase))) .Where(a3Mp => a3Mp != null)) { OutputMods.AddRange(GetModPaths(a3Mp)); } }
void HandleA3Mp() { foreach (var a3Mp in Arma2TerrainPacks.Select(m => InputMods .FirstOrDefault(x => x.Name.Equals(m, StringComparison.InvariantCultureIgnoreCase))) .Where(a3Mp => a3Mp != null)) { OutputMods.AddRange(a3Mp.GetPaths().OfType <IAbsoluteDirectoryPath>()); } }
void ProcessAndAddAiaMods() { //foreach (var mod in InputMods.Where(IsAiaMod)) //ProcessModIfHasAdditionalGameRequirements(mod); foreach (var mod in InputMods.Where(IsAiaSAMod)) { ProcessAiaLiteMod(mod); } // problematic? //OutputMods.RemoveAll(x => x..Split('/', '\\').First().Equals("@allinarma", StringComparison.CurrentCultureIgnoreCase)); OutputMods.RemoveAll(x => _additionalAiA.Contains(x)); OutputMods.AddRange(_additionalAiA); }
void ProcessIronFrontMods() { if (InputMods.Any(x => ifMainModFolders.ContainsIgnoreCase(x.Name))) { _ifa = IfaState.Full; } else if (InputMods.Any(x => ifMainModFoldersLite.ContainsIgnoreCase(x.Name))) { _ifa = IfaState.Lite; } else { return; } InputMods.RemoveAll(IsIronFrontFullOrLiteMod); var validGamePaths = GetValidGamePaths(); OutputMods.AddRange(ExistingMods(validGamePaths, _ifa == IfaState.Lite ? ifModFoldersLite : ifModFolders)); OutputMods.AddRange(ExistingMods(validGamePaths, _ifa == IfaState.Lite ? ifMainModFoldersLite : ifMainModFolders)); }
void AddNormalMods() { HandleA3Mp(); OutputMods.AddRange(_nonAiaMods.SelectMany(x => x.GetPaths().OfType <IAbsoluteDirectoryPath>())); }
void AddNormalMods() { OutputMods.AddRange(InputMods.SelectMany(GetModPaths)); }
protected void AddPrimaryGameFolders() { OutputMods.AddRange(Spec.AdditionalLaunchMods); }
void AddNormalMods() { HandleA3Mp(); OutputMods.AddRange(_nonAiaMods.SelectMany(GetModPaths)); }