Exemple #1
0
 public static void RemoveOverrideName(Addon addon)
 {
     if (OverrideCompatibilityByName.Contains(addon.Name))
     {
         OverrideCompatibilityByName.Remove(addon.Name);
         //Logger.Log($"Compatibility Override (by name) disabled for {addon.Name}");
         CfgUpdated = true;
         return;
     }
     //Logger.Log($"Cannot remove {addon.Name}. Entry doesn't exists."); //Should never happen but just in case
 }
Exemple #2
0
 public static void AddOverrideName(Addon addon)
 {
     if (!OverrideCompatibilityByName.Contains(addon.Name))
     {
         OverrideCompatibilityByName.Add(addon.Name);
         //Logger.Log($"Compatibility Override (by name) enabled for {addon.Name}");
         CfgUpdated = true;
         return;
     }
     //Logger.Log($"Cannot add {addon.Name}, entry already exists."); //Should never happen but just in case
 }