AILOpCodeCall.cs 413 B

1234567891011121314151617181920
  1. using System.Reflection;
  2. using System.Reflection.Emit;
  3. namespace ChocolArm64.Translation
  4. {
  5. struct AILOpCodeCall : IAILEmit
  6. {
  7. private MethodInfo MthdInfo;
  8. public AILOpCodeCall(MethodInfo MthdInfo)
  9. {
  10. this.MthdInfo = MthdInfo;
  11. }
  12. public void Emit(AILEmitter Context)
  13. {
  14. Context.Generator.Emit(OpCodes.Call, MthdInfo);
  15. }
  16. }
  17. }