示例#1
0
 public RomInfo(InteropRomInfo romInfo)
 {
     RomPath         = (ResourcePath)Utf8Marshaler.GetStringFromIntPtr(romInfo.RomPath);
     PatchPath       = (ResourcePath)Utf8Marshaler.GetStringFromIntPtr(romInfo.PatchPath);
     Header          = romInfo.Header;
     CoprocessorType = romInfo.CoprocessorType;
 }
示例#2
0
 public static ICustomMarshaler GetInstance(string cookie)
 {
     if (_instance == null)
     {
         return(_instance = new Utf8Marshaler());
     }
     return(_instance);
 }
示例#3
0
 public static List <string> GetAudioDevices()
 {
     return(new List <string>(Utf8Marshaler.PtrToStringUtf8(ConfigApi.GetAudioDevicesWrapper()).Split(new string[1] {
         "||"
     }, StringSplitOptions.RemoveEmptyEntries)));
 }
示例#4
0
 public static string GetScriptLog(Int32 scriptId)
 {
     return(Utf8Marshaler.PtrToStringUtf8(DebugApi.GetScriptLogWrapper(scriptId)).Replace("\n", Environment.NewLine));
 }
示例#5
0
 public static string GetExecutionTrace(UInt32 lineCount)
 {
     return(Utf8Marshaler.PtrToStringUtf8(DebugApi.GetExecutionTraceWrapper(lineCount)));
 }
示例#6
0
文件: EmuApi.cs 项目: gouchi/Mesen-S
 public static string GetLog()
 {
     return(Utf8Marshaler.PtrToStringUtf8(EmuApi.GetLogWrapper()).Replace("\n", Environment.NewLine));
 }
示例#7
0
 public static string GetKeyName(UInt32 key)
 {
     return(Utf8Marshaler.PtrToStringUtf8(InputApi.GetKeyNameWrapper(key)));
 }