Jakerxiii
Enthusiast
I've been looking for a while now on a way to launch an XEX through JRPCv2 without the use of XBDM. I would like to avoid the open windows explorer way. I'm using C#; any help would be appreciated, thanks
bool bootXEX(IXboxConsole xrube, string xexpath, string xexdir) //first parameter can be omitted if you like
{
string XEX = "\"" + xexpath + "\""; //add "" around the path, to prevent errors with paths including white spaces
string DIR = "\"" + xexdir + "\""; //add "" around the path, to prevent errors with paths including white spaces
string resp = JRPC.SendCommand(xrube, "magicboot Title=" + XEX + " Directory=" + DIR + "\r\n"); //concatenate parameters
if (!(resp.Contains("202")) || resp.Contains("203")) //check if it worked
return false; //return false if it didn't work
return true; //return true if it did
}
I haven't actually tested the code, it should work though. If it doesn't and this thread has been locked PM me, otherwise please reply on this thread (so anyone can see it).Thankyou, both of you. These methods are helpful and although I'm probably going to use Snowy's method I appreciate the alternatives. Thanks for the help and fast replies
That is the correct command, so yeah it works.I haven't actually tested the code, it should work though. If it doesn't and this thread has been locked PM me, otherwise please reply on this thread (so anyone can see it).
I haven't actually tested the code, it should work though. If it doesn't and this thread has been locked PM me, otherwise please reply on this thread (so anyone can see it).
I haven't actually tested the code, it should work though. If it doesn't and this thread has been locked PM me, otherwise please reply on this thread (so anyone can see it).
That is the correct command, so yeah it works.
Or well, didn't look what's inside that library, but assuming it's all good.
EDIT: what's with the carriage return + linefeed at the end of the command though?
What is its use supposed to be?
Don't really understand what you mean.As an example, how would the path/xex file be formatted? I had it working but it seemed very unpredictable and I can't remember for the life of me how I had them. Many thanks
Eh, I can't 100% remember but I was fairly certain all XBDM commands needed to end with "\r\n", so I added it, but idk if JRPC does that anyways.That is the correct command, so yeah it works.
Or well, didn't look what's inside that library, but assuming it's all good.
EDIT: what's with the carriage return + linefeed at the end of the command though?
What is its use supposed to be?
Sorry forgot to include examples.As an example, how would the path/xex file be formatted? I had it working but it seemed very unpredictable and I can't remember for the life of me how I had them. Many thanks
Hdd:\somedir\somexex.xex
Hdd:\somedir\
Eh, I can't 100% remember but I was fairly certain all XBDM commands needed to end with "\r\n", so I added it, but idk if JRPC does that anyways.
Sorry forgot to include examples.
XEX would be like this:
and the directory would be like this:Code:Hdd:\somedir\somexex.xex
Code:Hdd:\somedir\