IL2CPP: Allow code at address zero to be evaluated (part of #21)

This commit is contained in:
Katy Coe
2020-02-13 18:22:38 +01:00
parent 29a49d3170
commit 245a95b15b

View File

@@ -141,8 +141,7 @@ namespace Il2CppInspector
Debug.WriteLine("Function table:"); Debug.WriteLine("Function table:");
Debug.WriteLine(string.Join(", ", from a in addrs select string.Format($"0x{a:X8}"))); Debug.WriteLine(string.Join(", ", from a in addrs select string.Format($"0x{a:X8}")));
foreach (var loc in addrs) foreach (var loc in addrs) {
if (loc != 0) {
var (code, metadata) = ConsiderCode(subImage, loc); var (code, metadata) = ConsiderCode(subImage, loc);
if (code != 0) { if (code != 0) {
RegistrationFunctionPointer = loc + subImage.GlobalOffset; RegistrationFunctionPointer = loc + subImage.GlobalOffset;