mirror of
https://github.com/Perfare/Il2CppDumper.git
synced 2025-01-09 11:17:35 -03:00
修复bug
This commit is contained in:
parent
8f06aa425a
commit
2fe04c6e41
1 changed files with 2 additions and 1 deletions
|
@ -220,7 +220,8 @@ namespace Il2CppDumper
|
|||
foreach (var section in data)
|
||||
{
|
||||
il2Cpp.Position = section.offset;
|
||||
while (il2Cpp.Position < section.offsetEnd - il2Cpp.PointerSize)
|
||||
var end = Math.Min(section.offsetEnd, il2Cpp.Length) - il2Cpp.PointerSize;
|
||||
while (il2Cpp.Position < end)
|
||||
{
|
||||
var addr = il2Cpp.Position;
|
||||
if (il2Cpp.ReadIntPtr() == typeDefinitionsCount)
|
||||
|
|
Loading…
Reference in a new issue