Browse Source

Updated library loader to show error when duplicates exist.

pull/1/head
Anairkoen Schno 5 years ago
parent
commit
e47fd0640f
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      IPA.Injector/LibLoader.cs

+ 3
- 1
IPA.Injector/LibLoader.cs View File

@ -23,7 +23,9 @@ namespace IPA.Injector
filenameLocations = new Dictionary<string, string>(); filenameLocations = new Dictionary<string, string>();
foreach (var fn in TraverseTree(LibraryPath, s => s != NativeLibraryPath)) foreach (var fn in TraverseTree(LibraryPath, s => s != NativeLibraryPath))
filenameLocations.Add(fn.Name, fn.FullName);
if (filenameLocations.ContainsKey(fn.Name))
Log(Level.Critical, $"Multiple instances of {fn.Name} exist in Libs! Ignoring {fn.FullName}");
else filenameLocations.Add(fn.Name, fn.FullName);
} }
var testFile = $"{asmName.Name}.{asmName.Version}.dll"; var testFile = $"{asmName.Name}.{asmName.Version}.dll";


Loading…
Cancel
Save