mirror of
https://github.com/Perfare/Il2CppDumper.git
synced 2025-01-26 02:33:01 -03:00
修复bug
This commit is contained in:
parent
2fe04c6e41
commit
6327879c05
1 changed files with 2 additions and 1 deletions
|
@ -256,7 +256,8 @@ namespace Il2CppDumper
|
||||||
foreach (var section in data)
|
foreach (var section in data)
|
||||||
{
|
{
|
||||||
il2Cpp.Position = section.offset;
|
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;
|
var addr = il2Cpp.Position;
|
||||||
if (il2Cpp.ReadIntPtr() == typeDefinitionsCount)
|
if (il2Cpp.ReadIntPtr() == typeDefinitionsCount)
|
||||||
|
|
Loading…
Add table
Reference in a new issue