public static void GetConflicts(PreinstallEntry addedMod, List <PreinstallEntry> listedMods) // checks each mod against one another for conflicts, and adds conflicting mods to a list. { Debug.LogLine(String.Format("[PreinstallCheck] Checking for conflicts: {0}", addedMod.modInfo.Name), Debug.LogLevel.Basic); foreach (PreinstallEntry listedMod in listedMods) { if (addedMod.Equals(listedMod) || listedMod.ModConflicts.Contains(addedMod.modInfo.Name)) { continue; } if (hasConflict(addedMod.modInfo, listedMod.modInfo)) { addedMod.ModConflicts.Add(listedMod.modInfo.Name); listedMod.ModConflicts.Add(addedMod.modInfo.Name); } } }
public static void RemoveFromXml(PreinstallEntry mod) { new SettingsManager("_extr\\buildInfo.xml").RemoveMod(mod.modInfo); }