Allow reflection for NativeInterface + statically reference GetFunctionAddress so it gets compiled

This commit is contained in:
Evan Husted
2025-03-01 19:56:00 -06:00
parent ccfcdd4219
commit c3083076ee
9 changed files with 89 additions and 70 deletions

View File

@@ -14,7 +14,7 @@ namespace ARMeilleure.Instructions
context.StoreToContext();
context.Call(typeof(NativeInterface).GetMethod(name), Const(((IOpCode)op).Address), Const(op.Id));
context.Call(NativeInterface.Type.GetMethod(name), Const(((IOpCode)op).Address), Const(op.Id));
context.LoadFromContext();
@@ -29,7 +29,7 @@ namespace ARMeilleure.Instructions
context.StoreToContext();
context.Call(typeof(NativeInterface).GetMethod(name), Const(((IOpCode)op).Address), Const(op.Id));
context.Call(NativeInterface.Type.GetMethod(name), Const(((IOpCode)op).Address), Const(op.Id));
context.LoadFromContext();