Downloading pkg files directly to internal hdd from XMB

Of course its not gonna interest everyone, but if it even interests a few ill be happy.
I have no doubt it will....
Hell it does already as far as I know

As for xmbm+, we all know that we need an update. Both for installing the xml & to update xmbm+ itself.
Maybe in the near future...

Sent with Tapatalk
 
Here is my code from the xai_plugin to automatically download a pkg onto the internal hdd.
The PKG is then downloaded to "/dev_hdd0/tmp/downloader/" and not visible in XMB.

Code:
int LoadPlugin(char * pluginname, void * handler)
{
	return xmm0_interface->LoadPlugin3( xmm0_interface->GetPluginIdByName(pluginname), handler,0); 
}

wchar_t * url_path;
download_if * download_interface;

void download_thread(int id)
{	

	download_interface = (download_if *)GetPluginInterface("download_plugin",1);
	download_interface->DoUnk5(0,url_path, L"/dev_hdd0"); 	
}

void downloadPKG(wchar_t * url)
{	
	url_path = url;
	LoadPlugin("download_plugin",(void*)download_thread);			
}



// Rebug Toolbox
void download_toolbox()
{
	notify("Downloading Toolbox...");
	downloadPKG(L"http://rebug.me/?wpfb_dl=142"); // Toolbox DL-url
}

And to install a given PKG:
Code:
char pkg_path[255];
game_ext_plugin_interface * game_ext_interface;

void installPKG_thread()
{
	game_ext_interface = (game_ext_plugin_interface *)GetPluginInterface("game_ext_plugin",1);

	game_ext_interface->DoUnk0();
	log("File: %s\n",pkg_path);
	game_ext_interface->DoUnk34(pkg_path);
}

void installPKG(char * path)
{
	strcpy(pkg_path, path);
	LoadPlugin("game_ext_plugin",(void*)installPKG_thread);
}
 
Last edited:
Here is my code from the xai_plugin to automatically download a pkg onto the internal hdd.
The PKG is then downloaded to "/dev_hdd0/tmp/downloader/" and not visible in XMB.

Code:
int LoadPlugin(char * pluginname, void * handler)
{
... 
void installPKG(char * path)
{
strcpy(pkg_path, path);
LoadPlugin("game_ext_plugin",(void*)installPKG_thread);
}
Thanks for that. ☺

Which of these methods are currently exposed in your xai_plugin interface?

void download_toolbox() only?
What about downloadPKG for instance?

If it's exposed, it requires a url parameter so let's assume we can call it via xml, same way we call download_toolbox, how would you go about passing that url value.? Can the plugin parse a xml key/value maybe?

Sent with Tapatalk
 
Last edited:
Thanks for that. ☺
Are those methods currently exposed in your xai_plugin or are they private?
Sorry guys, we are derailing the thread a tiny bit!

Sent with Tapatalk
If I'm right this code is a part of actual "CFW-Settings 0.1 by Mysis" this permits to download and install Rebug Toolbox in two times from XMB.

Not an "automated" (Download+Install in one time) like done with [MENTION=22544]DeViL303[/MENTION] method

Correct me if I'm wrong
 
Thanks for that. ☺
Are those methods currently exposed in your xai_plugin or are they private?

Sorry guys if we are derailing the thread a tiny bit! It still goes with the title right?

Sent with Tapatalk

Yeah didn't realise this could already be done easily. looks like im wasting my time with this when code is already available, that's the problem with missing a few years of the scene. Anyway itll give me a chance to get back to my Rebug pup that installs with XMBM+ built in (it will be for my own use before anyone complains about me releasing it :) )
 
If I'm right this code is a part of actual "CFW-Settings 0.1 by Mysis" this permits to download and install Rebug Toolbox in two times from XMB.

Not an "automated" (Download+Install in one time) like done with [MENTION=22544]DeViL303[/MENTION] method

Correct me if I'm wrong
No you're not completely wrong.
It downloads the pkg then installs it.
In practice though it can do exactly the same thing if you want it to. You just need to adjust the code to your needs

This code has many advantages though as there are no restrictions I can immediately think of.

Still for your purposes & if the restrictions are not a problem in your case, [MENTION=22544]DeViL303[/MENTION]'s POC is interesting because it doesn't require any coding, no self, no plugin.

Sent with Tapatalk
 
Yeah didn't realise this could already be done easily. looks like im wasting my time with this when code is already available, that's the problem with missing a few years of the scene. Anyway itll give me a chance to get back to my Rebug pup that installs with XMBM+ built in (it will be for my own use before anyone complains about me releasing it :) )
What you are doing is not a waste of time. It can do things that could only be done by code in memory atm. Don't give up...

About the PUP nobody was complaining, just giving an opinion, nothing more...

Sent with Tapatalk
 
Well maybe, but with the Mysis code having no restrictions and this being limited by the content ID im not sure if its worth it, if people want to install pkgs directly to hdd it makes more sense for them to install the plugin than to install the xil files. I didn't realise xai plugin could do it already when I started looking into this.


So how would I go about calling on the xai plugin to do this for me from an xml , if for example I wanted to do something similar to what I was trying to do in my video , ie build direct shortcuts to pkgs into the XMB , how would I do it and not be limited by the content ID?
 
Last edited:
The Mysis plugin is restricted to download and install Rebug Toolbox only I believe

Is there any way with authers packages ? If it is, how to please ?
 
Well maybe, but with the Mysis code having no restrictions and this being limited by the content ID im not sure if its worth it, if people want to install pkgs directly to hdd it makes more sense for them to install the plugin than to install the xil files. I didn't realise xai plugin could do it already when I started looking into this.


So how would I go about calling on the xai plugin to do this for me from an xml , if for example I wanted to do something similar to what I was trying to do in my video , ie build direct shortcuts to pkgs into the XMB , how would I do it and not be limited by the content ID?
have you tried the Mysis code? for me it downloaded just fine but would not install, always error. that why I have it disabled on my ps3
 
have you tried the Mysis code? for me it downloaded just fine but would not install, always error. that why I have it disabled on my ps3
What code [MENTION=6]bitsbubba[/MENTION]? The Rebug Toolbox download in CFW-Settings or the same code run a self?

Sent with Tapatalk
 
have you tried the Mysis code? for me it downloaded just fine but would not install, always error. that why I have it disabled on my ps3

No havnt tried it yet, didn't even know it could download and install pkgs, missed that feature when I read about it and never fully explored it.

[MENTION=6]bitsbubba[/MENTION] Edit: ok I see now, my version didnt have the rebug toolbox option for some reason, it was from a pkg installer.

Got a different version 0.1 that definitely includes rebug toolbox download option but no luck with it, error the first time, then froze console requiring hard reset the second time. Anyway its probably just an early version 0.1 or something. I expect the option is working for some if it was included.

This is the one that has the rebug toolbox download option but froze my console https://www.dropbox.com/s/hlts44rfgqo1x45/xmb_cfw-settings.0.1.rar?dl=1
 
Last edited:
The Mysis plugin is restricted to download and install Rebug Toolbox only I believe

Is there any way with authers packages ? If it is, how to please ?
As far as know there is nothing out there that can help you.
What do you want to achieve exactly? How were you thinking about calling this feature? From a self? From xml?

Sent with Tapatalk
 
As far as know there is nothing out there that can help you.
What do you want to achieve exactly? How were you thinking about calling this feature? From a self? From xml?

Sent with Tapatalk

It looks to me like hes asking how to create something like whats in my video, but using Mysis's code so that it hasn't any limitations.
 
[MENTION=16840]0_obeWAN[/MENTION]

Well look at the xml from cfw_setting_en.xml

tex_loading_icon Download latest Rebug Toolbox xai_plugin download_toolbox disable none 1 item_tex_cam_icon Install downloaded Rebug Toolbox xai_plugin install_toolbox disable none 1

You could make your own sprx plugin & expose the download and install (or even join downliad & install into one) functions so you can call them from xml in the same fashion as above.

I think it's possible as well to pass the URL of the file to download with a xml key/string pair rather than hardcoding the URL in the sprx the way it is now. To be confirmed by [MENTION=22901]mysis[/MENTION] but I doubt it'd be a problem.


Sent with Tapatalk
 
Last edited:
[MENTION=16840]0_obeWAN[/MENTION]

Well look at the xml from cfw_setting_en.xml



You could make your own sprx plugin & expose the download and install (or even join downliad & install into one) functions so you can call them from xml in the same fashion as above.

I think it's possible as well to pass the URL of the file to download with a xml key/string pair rather than hardcoding the URL in the sprx the way it is now.


Sent with Tapatalk

Yeah I think that is more like the info he was after.
 
I believe that this kind of implementation could be added to xai_plugin with a minimum of effort.

For now, as the source hasn't been released, you would need to make your own plugin.
Unless [MENTION=22901]mysis[/MENTION] feels like indulging us... It's something that could be used in a number of ways so maybe if we ask nicely...

Also you should have a look at this thread on how to call a function in xai_plugin.
http://www.psx-place.com/forum/developer-discussion/call-function-via-xml-file-xai_plugin-8934.html

Sent with Tapatalk
 
Last edited:
[MENTION=6]bitsbubba[/MENTION] [MENTION=7]atreyu187[/MENTION]
You gonna make us all cry. Poor lads...
Bloody haves & have-nots...

Sent with Tapatalk

Yea silly family members using it as a media center as the Wii isn't good enough anymore. My 8 year old complains because it is not in HD and my lady is because MKV's lag. Oh well citrus is almost done with my CECHB-01 and installing the perma NAND flasher so this problem has been remedied. I'm stoked to finally have a BC model again especially the B-01 as its sexy all black. The WiFi and card reader aren't important to me at all. But to have my PSTV for PSP & Vita, PS3 covers PS1/2/3 and my PS4 has all my gaming needs in a small space.
 
Last edited:
Back
Top