PE: Add ability to fetch exports with GetExports()

This commit is contained in:
Katy Coe
2020-07-03 19:50:46 +02:00
parent 117a440b58
commit 93fed266ea
4 changed files with 62 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ namespace Il2CppInspector
ulong GlobalOffset { get; }
Dictionary<string, ulong> GetSymbolTable();
uint[] GetFunctionTable();
IEnumerable<Export> GetExports();
U ReadMappedObject<U>(ulong uiAddr) where U : new();
U[] ReadMappedArray<U>(ulong uiAddr, int count) where U : new();
long[] ReadMappedWordArray(ulong uiAddr, int count);
@@ -136,6 +137,9 @@ namespace Il2CppInspector
// Find search locations in the machine code for Il2Cpp data
public virtual uint[] GetFunctionTable() => throw new NotImplementedException();
// Find all symbol exports for the image
public virtual IEnumerable<Export> GetExports() => null;
// Map an RVA to an offset into the file image
// No mapping by default
public virtual uint MapVATR(ulong uiAddr) => (uint) uiAddr;