Browse Source

Fixed library loader lookups

pull/44/head
Anairkoen Schno 4 years ago
parent
commit
332e10a596
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      IPA.Loader/Loader/LibLoader.cs

+ 3
- 3
IPA.Loader/Loader/LibLoader.cs View File

@ -120,10 +120,10 @@ namespace IPA.Loader
SetupAssemblyFilenames();
var testFile = $"{asmName.Name}.{asmName.Version}.dll";
var testFile = $"{asmName.Name}.dll";
Log(Logger.Level.Debug, $"Looking for file {asmName.Name}.dll");
if (FilenameLocations.TryGetValue(testFile = $"{asmName.Name}.dll", out var path))
if (FilenameLocations.TryGetValue(testFile, out var path))
{
Log(Logger.Level.Debug, $"Found file {testFile} as {path}");
if (File.Exists(path))
@ -131,7 +131,7 @@ namespace IPA.Loader
Log(Logger.Level.Critical, $"but {path} no longer exists!");
}
else if (FilenameLocations.TryGetValue(testFile, out path))
else if (FilenameLocations.TryGetValue(testFile = $"{asmName.Name}.{asmName.Version}.dll", out path))
{
Log(Logger.Level.Debug, $"Found file {testFile} as {path}");
Log(Logger.Level.Warning, $"File {testFile} should be renamed to just {asmName.Name}.dll");


Loading…
Cancel
Save