Unity: Fix select only matching APIs in discovery instead of all in total version range

This commit is contained in:
Katy Coe
2020-07-25 15:54:18 +02:00
parent cdc02cb475
commit 87519ba66f

View File

@@ -162,7 +162,7 @@ namespace Il2CppInspector.Cpp.UnityHeaders
Console.WriteLine("IL2CPP API discovery was successful");
return typeHeaders.SelectMany(
t => apis.Where(a => t.VersionRange.Intersect(a.VersionRange) != null)
t => apiMatches.Where(a => t.VersionRange.Intersect(a.VersionRange) != null)
.Select(a => new UnityHeaders(t, a))).ToList();
}