Output function table when parsing binary

This commit is contained in:
Katy Coe
2019-10-14 22:57:42 +02:00
parent 2dd4598716
commit 73f4953b5b

View File

@@ -5,7 +5,9 @@
All rights reserved.
*/
using System;
using System.Collections.Generic;
using System.Linq;
namespace Il2CppInspector
{
@@ -43,6 +45,10 @@ namespace Il2CppInspector
var subImage = Image[imageIndex];
Image.Stream.Version = version;
var addrs = subImage.GetFunctionTable();
Console.WriteLine("Function Table:");
Console.WriteLine(string.Join(", ", from a in addrs select string.Format($"0x{a:X8}")));
foreach (var loc in addrs)
if (loc != 0) {
var (code, metadata) = ConsiderCode(loc, Image.GlobalOffset);