mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-22 20:15:30 +00:00
Remove assembly version checks from resolver
Not sure how this version check slipped in. It's not present in upstream cecil code or the disassembled code from our current copy of mono.cecil.dll. Fixes #710
This commit is contained in:
parent
1e2af5e648
commit
f505808c8b
|
@ -93,11 +93,7 @@ namespace OpenTK.Rewrite
|
|||
continue;
|
||||
try
|
||||
{
|
||||
var assembly = GetAssembly(file, parameters);
|
||||
if (assembly.Name.Version == name.Version || IsZero(name.Version))
|
||||
{
|
||||
return assembly;
|
||||
}
|
||||
return GetAssembly(file, parameters);
|
||||
}
|
||||
catch (System.BadImageFormatException)
|
||||
{
|
||||
|
@ -248,11 +244,7 @@ namespace OpenTK.Rewrite
|
|||
var file = GetAssemblyFile(reference, string.Empty, gac_path);
|
||||
if (File.Exists(file))
|
||||
{
|
||||
var assembly = GetAssembly(file, parameters);
|
||||
if (assembly.Name.Version == reference.Version || IsZero(reference.Version))
|
||||
{
|
||||
return assembly;
|
||||
}
|
||||
return GetAssembly(file, parameters);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -272,11 +264,7 @@ namespace OpenTK.Rewrite
|
|||
var file = GetAssemblyFile(reference, prefixes[i], gac);
|
||||
if (Directory.Exists(gac) && File.Exists(file))
|
||||
{
|
||||
var assembly = GetAssembly(file, parameters);
|
||||
if (assembly.Name.Version == reference.Version || IsZero(reference.Version))
|
||||
{
|
||||
return assembly;
|
||||
}
|
||||
return GetAssembly(file, parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue