Class BaseAddressResolver
Base memory address resolver.
Inheritance
Inherited Members
Namespace: Dalamud.Game
Assembly: Dalamud.dll
Syntax
public abstract class BaseAddressResolver
Properties
| Improve this Doc View SourceDebugScannedValues
Gets a list of memory addresses that were found, to list in /xldata.
Declaration
public static Dictionary<string, List<(string ClassName, IntPtr Address)>> DebugScannedValues { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.List<System.ValueTuple<System.String, System.IntPtr>>> |
IsResolved
Gets or sets a value indicating whether the resolver has successfully run Setup32Bit(SigScanner) or Setup64Bit(SigScanner).
Declaration
protected bool IsResolved { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
| Improve this Doc View SourceGetVirtualFunction<T>(IntPtr, Int32, Int32)
Fetch vfunc N from a pointer to the vtable and return a delegate function pointer.
Declaration
public T GetVirtualFunction<T>(IntPtr address, int vtableOffset, int count)
where T : class
Parameters
| Type | Name | Description |
|---|---|---|
| System.IntPtr | address | The address of the virtual table. |
| System.Int32 | vtableOffset | The offset from address to the vtable pointer. |
| System.Int32 | count | The vfunc index. |
Returns
| Type | Description |
|---|---|
| T | A delegate function pointer that can be invoked. |
Type Parameters
| Name | Description |
|---|---|
| T | The delegate to marshal the function pointer to. |
Setup()
Setup the resolver, calling the appropriate method based on the process architecture, using the default SigScanner.
For plugins. Not intended to be called from Dalamud Service{T} constructors.
Declaration
public void Setup()
Setup(SigScanner)
Setup the resolver, calling the appropriate method based on the process architecture.
Declaration
public void Setup(SigScanner scanner)
Parameters
| Type | Name | Description |
|---|---|---|
| SigScanner | scanner | The SigScanner instance. |
Setup32Bit(SigScanner)
Setup the resolver by finding any necessary memory addresses.
Declaration
protected virtual void Setup32Bit(SigScanner scanner)
Parameters
| Type | Name | Description |
|---|---|---|
| SigScanner | scanner | The SigScanner instance. |
Setup64Bit(SigScanner)
Setup the resolver by finding any necessary memory addresses.
Declaration
protected virtual void Setup64Bit(SigScanner scanner)
Parameters
| Type | Name | Description |
|---|---|---|
| SigScanner | scanner | The SigScanner instance. |
SetupInternal(SigScanner)
Setup the resolver by finding any necessary memory addresses.
Declaration
protected virtual void SetupInternal(SigScanner scanner)
Parameters
| Type | Name | Description |
|---|---|---|
| SigScanner | scanner | The SigScanner instance. |