Пример #1
0
 void ProcessAndAddNormalModsWithAdditionalGameRequirements()
 {
     foreach (var mod in _nonAiaMods)
     {
         ProcessModIfHasAdditionalGameRequirements(mod);
     }
     OutputMods.AddRange(_additional);
 }
Пример #2
0
 void ProcessIronFrontMods()
 {
     if (!InputMods.Any(x => ifMainModFolders.ContainsIgnoreCase(x.PackageName)))
     {
         return;
     }
     InputMods.RemoveAll(IsIronFrontFullOrLiteMod);
     OutputMods.AddRange(ExistingMods(GetOaPaths().Where(x => x != null).ToArray(), ifModFolders));
 }
Пример #3
0
 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));
     }
 }
Пример #4
0
 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>());
     }
 }
Пример #5
0
            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);
            }
Пример #6
0
            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));
            }
Пример #7
0
 void AddNormalMods()
 {
     HandleA3Mp();
     OutputMods.AddRange(_nonAiaMods.SelectMany(x => x.GetPaths().OfType <IAbsoluteDirectoryPath>()));
 }
Пример #8
0
 void AddNormalMods()
 {
     OutputMods.AddRange(InputMods.SelectMany(GetModPaths));
 }
Пример #9
0
 protected void AddPrimaryGameFolders()
 {
     OutputMods.AddRange(Spec.AdditionalLaunchMods);
 }
Пример #10
0
 void AddNormalMods()
 {
     HandleA3Mp();
     OutputMods.AddRange(_nonAiaMods.SelectMany(GetModPaths));
 }