Browse Source

Updated CecilLibLoader to reflect newer main lib loader

pull/46/head
Anairkoen Schno 5 years ago
parent
commit
756c9e85e4
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      IPA.Loader/Loader/LibLoader.cs

+ 6
- 5
IPA.Loader/Loader/LibLoader.cs View File

@ -13,14 +13,15 @@ namespace IPA.Loader
{
LibLoader.SetupAssemblyFilenames();
var testFile = $"{name.Name}.{name.Version}.dll";
if (LibLoader.FilenameLocations.TryGetValue(testFile, out string path))
if (LibLoader.FilenameLocations.TryGetValue($"{name.Name}.{name.Version}.dll", out var path))
{
if (File.Exists(path))
return AssemblyDefinition.ReadAssembly(path, parameters);
}
else if (LibLoader.FilenameLocations.TryGetValue($"{name.Name}.dll", out path))
{
if (File.Exists(path))
{
return AssemblyDefinition.ReadAssembly(path, parameters);
}
}
return base.Resolve(name, parameters);


Loading…
Cancel
Save