IL2CPP: Allow code at address zero to be evaluated (part of #21)
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user