コード例 #1
0
ファイル: EmuApi.cs プロジェクト: yoshisuga/Mesen-S
 public RomInfo(InteropRomInfo romInfo)
 {
     RomPath         = (ResourcePath)Utf8Marshaler.GetStringFromIntPtr(romInfo.RomPath);
     PatchPath       = (ResourcePath)Utf8Marshaler.GetStringFromIntPtr(romInfo.PatchPath);
     Header          = romInfo.Header;
     CoprocessorType = romInfo.CoprocessorType;
 }
コード例 #2
0
ファイル: Utf8Marshaler.cs プロジェクト: yoshisuga/Mesen-S
 public static ICustomMarshaler GetInstance(string cookie)
 {
     if (_instance == null)
     {
         return(_instance = new Utf8Marshaler());
     }
     return(_instance);
 }
コード例 #3
0
ファイル: ConfigApi.cs プロジェクト: sodomon2/Mesen-S
 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
ファイル: InputApi.cs プロジェクト: yoshisuga/Mesen-S
 public static string GetKeyName(UInt32 key)
 {
     return(Utf8Marshaler.PtrToStringUtf8(InputApi.GetKeyNameWrapper(key)));
 }