예제 #1
0
        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 _);
        }
예제 #2
0
        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));
        }
예제 #3
0
 public static void LaunchXEX(this IXboxConsole console, string xexPath, string xexDirectory)
 {
     try
     {
         console.SendTextCommand(0, NewMethod(xexPath, xexDirectory), out _);
     }
     catch
     {
     }
 }
예제 #4
0
 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
     {
     }
 }
예제 #5
0
        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 _);
        }