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