public static void XNotify(this IXboxConsole console, string text, XNotifyLogo icon) { string command = "consolefeatures ver=2" + " type=12 params=\"A\\0\\A\\2\\" + 2 + "/" + text.Length + "\\" + text.ConvertStringToHex(Encoding.ASCII) + "\\" + 1 + "\\"; command += icon + "\\\""; console.SendTextCommand(0, command, out _); }
public static uint GetTemperature(this IXboxConsole console, TemperatureFlag temperatureType) { object[] objArray = new object[] { "consolefeatures ver=", "2", " type=15 params=\"A\\0\\A\\1\\", typeof(int), @"\", (int)temperatureType, "\\\"" }; string command = string.Concat(objArray); console.SendTextCommand(0, command, out string response); return(uint.Parse(response.Substring(response.Find(" ") + 1), NumberStyles.HexNumber)); }
public static void LaunchXEX(this IXboxConsole console, string xexPath, string xexDirectory) { try { console.SendTextCommand(0, NewMethod(xexPath, xexDirectory), out _); } catch { } }
public static void Shutdown(this IXboxConsole console) { try { console.SendTextCommand(0, "consolefeatures ver=" + "2" + " type=11 params=\"A\\0\\A\\0\\\"", out string response); } catch { } }
public static void LaunchTitle(this IXboxConsole console, string path, string directory) { string[] lines = path.Split("\\".ToCharArray()); for (int i = 0; i < lines.Length - 1; i++) { directory += lines[i] + "\\"; } console.SendTextCommand(0, "magicboot title=\"" + path + "\" directory=\"" + directory + "\"", out _); }