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