Fix end method pointers being incorrect when compiler aggregates multiple methods to same start address
This commit is contained in:
@@ -159,7 +159,7 @@ namespace Il2CppInspector
|
|||||||
// Get sorted list of method pointers
|
// Get sorted list of method pointers
|
||||||
var sortedMethodPointers = (Version <= 24.1)?
|
var sortedMethodPointers = (Version <= 24.1)?
|
||||||
Binary.GlobalMethodPointers.OrderBy(m => m).ToList() :
|
Binary.GlobalMethodPointers.OrderBy(m => m).ToList() :
|
||||||
Binary.ModuleMethodPointers.SelectMany(module => module.Value).OrderBy(m => m).ToList();
|
Binary.ModuleMethodPointers.SelectMany(module => module.Value).OrderBy(m => m).Distinct().ToList();
|
||||||
|
|
||||||
// Guestimate method end addresses
|
// Guestimate method end addresses
|
||||||
methodPointers = new Dictionary<ulong, ulong>(sortedMethodPointers.Count);
|
methodPointers = new Dictionary<ulong, ulong>(sortedMethodPointers.Count);
|
||||||
|
|||||||
Reference in New Issue
Block a user