1 parent 3d7d858 commit eb28bdbCopy full SHA for eb28bdb
1 file changed
Source/HedgeModManager/ModDatabaseGeneric.cs
@@ -263,7 +263,12 @@ public void LoadSingleCodeFile(string path)
263
{
264
if (File.Exists(path))
265
266
- Codes.AddRange(CodeFile.FromFile(path).Codes);
+ var codeFile = CodeFile.FromFile(path);
267
+ foreach (var code in codeFile.Codes)
268
+ {
269
+ Codes.RemoveAll(x => (x.Name == code.Name && x.Category == code.Category) || (!string.IsNullOrEmpty(x.ID) && x.ID == code.ID));
270
+ Codes.Add(code);
271
+ }
272
}
273
274
catch
0 commit comments