make TryMapVATR overrideable and implement it for ELFs

This commit is contained in:
LukeFZ
2024-11-09 15:43:22 +01:00
parent 08431b774a
commit e0e8d052ea
2 changed files with 20 additions and 3 deletions

View File

@@ -284,7 +284,7 @@ namespace Il2CppInspector
public virtual uint MapVATR(ulong uiAddr) => (uint) uiAddr;
// Try to map an RVA to an offset in the file image
public bool TryMapVATR(ulong uiAddr, out uint fileOffset) {
public virtual bool TryMapVATR(ulong uiAddr, out uint fileOffset) {
try {
fileOffset = MapVATR(uiAddr);
return true;