mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-12 03:01:32 +00:00
26 lines
892 B
C#
26 lines
892 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Indy.IL2CPU.IL.X86;
|
|
|
|
namespace Indy.IL2CPU.IL.X86.Win32 {
|
|
public class Win32OpCodeMap: X86OpCodeMap {
|
|
protected override Type GetCustomMethodImplementationOp() {
|
|
return typeof(Win32CustomMethodImplementationOp);
|
|
}
|
|
|
|
public override Mono.Cecil.MethodReference GetCustomMethodImplementation(string aOrigMethodName, bool aInMetalMode) {
|
|
switch (aOrigMethodName) {
|
|
case "System_Void___System_Console_Write___System_String___": {
|
|
return CustomImplementations.System.ConsoleImplRefs.WriteRef;
|
|
}
|
|
case "System_Void___System_Console_WriteLine___System_String___": {
|
|
return CustomImplementations.System.ConsoleImplRefs.WriteLineRef;
|
|
}
|
|
default:
|
|
return base.GetCustomMethodImplementation(aOrigMethodName, aInMetalMode);
|
|
}
|
|
}
|
|
}
|
|
}
|