mirror of
https://github.com/Perfare/Il2CppDumper.git
synced 2025-01-10 03:27:28 -03:00
Fixed #277
This commit is contained in:
parent
3ff284ee2d
commit
99ba2697ad
1 changed files with 5 additions and 1 deletions
|
@ -47,7 +47,11 @@ namespace Il2CppDumper
|
|||
public override ulong MapVATR(ulong absAddr)
|
||||
{
|
||||
var addr = absAddr - imageBase;
|
||||
var section = sections.First(x => addr >= x.VirtualAddress && addr <= x.VirtualAddress + x.VirtualSize);
|
||||
var section = sections.FirstOrDefault(x => addr >= x.VirtualAddress && addr <= x.VirtualAddress + x.VirtualSize);
|
||||
if (section == null)
|
||||
{
|
||||
return 0ul;
|
||||
}
|
||||
return addr - (section.VirtualAddress - section.PointerToRawData);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue