PSP Launcher : small tool for lazy people :D

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
Shazz
Posts: 244
Joined: Tue Aug 31, 2004 11:42 pm
Location: Somewhere over the rainbow
Contact:

PSP Launcher : small tool for lazy people :D

Post by Shazz »

Hello folks...

Using various pieces of code/art from many people (VBA Emu browser, pspsdk samples, pochi style backgrounds [http://pochistyle.pspwire.net/]), I wrote for myself a tiny file browser to :
- Browse the memory stick
- Enable the USB connection without exiting the tool (and so update the files)
- Run 90% of the homebrew apps (emus, games, tools... located on the memory stick) available on the psp directly from the tool (I hate all those slow icons from the PSP OS + %, ~1 directory names, I prefer one then a browser ;-) )

As it is a "private" tool, it is not very nice, not very powerful, not very allwhatyouwant, but really saves time for me :D

So feel free to use it.... the code is pspsdk compliant and available on request if somebody wants to improve it, fix bugs (home :D)...

Keys :
X : select, run
O : cancel
^ : dir up
R1 : USB on/off
Home : direct exit :D the callback makes me mad...

download here : http://tmpstore.free.fr/PSP/PSPLauncher_beta.zip
(FW 1.5 distribution, do not change the dir names...)
- TiTAN Art Division -
http://www.titandemo.org
emumaniac
Posts: 79
Joined: Sun May 08, 2005 12:22 am

Post by emumaniac »

Thanks for the release its rather nifty :)

Ive fixed your download so now v1.0 owners can enjoy the launcher too and theres screenshots of this in action at http://psp-news.dcemu.co.uk/pspfilelauncher.shtml
RATiX
Posts: 48
Joined: Sat Apr 30, 2005 5:02 pm

Post by RATiX »

One question: is it possible for the PSP to be doing stuff (like playing a song) while in USB mode?
User avatar
Shazz
Posts: 244
Joined: Tue Aug 31, 2004 11:42 pm
Location: Somewhere over the rainbow
Contact:

Post by Shazz »

emumaniac wrote:Thanks for the release its rather nifty :)
l
Thanks Emumaniac..., I did not expect to see it on my fav' PSP news website :D

By the way, I did not mention that the apps PSP Launcher can run should be standard PSP ELFs (not the true PBP archives located in the % folders, the EBOOT.PBP located in the no% folders only, or any ELF generated by the toolchain...), seemslogical to me but....

Ratix : of course if you're not using the PSP OS USB connection menu but your own code like this tool or as the pspsdk USB Storage sample does.... so to listen music while browsing the mem stick thru the USB wire, you would need for exemple PSP MediaCenter to handle the USB.... not a big deal :D)
- TiTAN Art Division -
http://www.titandemo.org
F9zDark
Posts: 127
Joined: Sat Apr 02, 2005 11:34 am

Post by F9zDark »

I tried running a homebrew app with the launcher, it doesn't load and gives the same error that happens when I try to launch a homebrew app for 1.0 on a 1.5 without using the Kxploit.

Added:

I guess the launcher can't launch PBP files.
User avatar
Shazz
Posts: 244
Joined: Tue Aug 31, 2004 11:42 pm
Location: Somewhere over the rainbow
Contact:

Post by Shazz »

F9zDark wrote:I tried running a homebrew app with the launcher, it doesn't load and gives the same error that happens when I try to launch a homebrew app for 1.0 on a 1.5 without using the Kxploit.

Added:

I guess the launcher can't launch PBP files.
F9zDark, read my post....
By the way, I did not mention that the apps PSP Launcher can run should be standard PSP ELFs (not the true PBP archives located in the % folders, the EBOOT.PBP located in the no% folders only, or any ELF generated by the toolchain...), seems logical to me but....
PBP are not executable, they are kind of archives....
- TiTAN Art Division -
http://www.titandemo.org
blaze
Posts: 1
Joined: Mon Jul 18, 2005 6:47 pm

could you post she code?

Post by blaze »

Hey i was wondering if you could post the src for this app


thanks
KaL
Posts: 41
Joined: Sun Apr 03, 2005 9:59 pm

Post by KaL »

[MISREAD THE WHOLE THING]
raiser
Posts: 4
Joined: Tue Mar 29, 2005 9:25 am

Post by raiser »

Shazz, I managed to get the Polygon (Bejeweled) PBP to load from the launcher\Games directory, even renamed to bejewel.pbp, however the pspgenesis pbp blue screens, and the pcep black screens, both require a reboot.

Do I have to extract the ELF from the PBP package, or stick the files somewhere else? I can't find any documentation on how to load emulators using this neat frontend.

Thanks
User avatar
Shazz
Posts: 244
Joined: Tue Aug 31, 2004 11:42 pm
Location: Somewhere over the rainbow
Contact:

Post by Shazz »

raiser wrote:Shazz, I managed to get the Polygon (Bejeweled) PBP to load from the launcher\Games directory, even renamed to bejewel.pbp, however the pspgenesis pbp blue screens, and the pcep black screens, both require a reboot.

Do I have to extract the ELF from the PBP package, or stick the files somewhere else? I can't find any documentation on how to load emulators using this neat frontend.
Hello Raiser
1. For polygon in fact you run the PBP in the no% folder which IS NOT a true PBP but an ELF renamed EBOOT.PBP to fool the PSP, so it works. My PSP Launcher doesn't check any file extension :D

2. pspgenesis may not work as some other emus too...dunno why.... I have to check their code....

3. PSP launcher can only execute ELF so you can get them :
- if you compile by yourself, psp-gcc generates an elf
- if you've got a 1.0 PBP distrib, extract DATA.PSP somewhere and execute it (you can rename it MYAPP.ELF if you like)
- if you've got a 1.5 kxploit distrib, or you run directly the EBOOT.PBP in the no% folder (the % folder is only used to show the icon in the PSP OS and trigger the kxploit) or your rename it as YOURAPP.ELF if you like

I hope I'm clear enough
- TiTAN Art Division -
http://www.titandemo.org
Cpasjuste
Posts: 214
Joined: Sun May 29, 2005 8:28 am

Post by Cpasjuste »

Yeah i have add this ability before in my crappy file manager, and it seems that we can load all code that was made with the psp sdk, im not sure need to be confirmed.
71M
Posts: 122
Joined: Tue Jun 21, 2005 5:28 am
Location: London

Post by 71M »

I'd be very interested to know how you guys are running the .elf file once its been loaded.
Being able to copy a newly compiled .elf file to the PSP while the old .elf is running would aweseome.
It'd save me having to do the enable usb, copy app, run app cycle over and over again.
Maybe even set it up to reload and run the app on the press of a button.

Cheers,
71M
User avatar
Shazz
Posts: 244
Joined: Tue Aug 31, 2004 11:42 pm
Location: Somewhere over the rainbow
Contact:

Post by Shazz »

That's the goal... as it is not very hard to do with PRX, it's more complicated with ELF but I work on it....

By the way, the PSP Launcher has really changed since the last version, I would need beta testers (real tests to perform, not "be the first")... so if you're interested, pm me.
- TiTAN Art Division -
http://www.titandemo.org
User avatar
evilo
Posts: 230
Joined: Thu Apr 22, 2004 8:40 pm
Contact:

Post by evilo »

hmm hmm... interessant...
CyberBill
Posts: 86
Joined: Tue Jul 26, 2005 3:53 pm
Location: Redmond, WA

Post by CyberBill »

Hi Shazz, I think this can be really important for playing with WiFi and being able to exit the game via 'home'.

How do you execute an ELF file?

I cant seem to figure out how you did it.. I've tried:

Code: Select all

sceKernelLoadExec("ms0:/PSP_GAME/SYSDIR/boot.elf",0);
AND...
int exec_p = sceKernelLoadModule("ms0:/PSP_GAME/SYSDIR/boot.elf", 0, 0);
sceKernelStartModule(exec_p, 0, 0, 0, 0);
Tried it from a program set to be kernel mode, and one that wasnt... Whats the trick I'm missing?

-Bill
User avatar
Shazz
Posts: 244
Joined: Tue Aug 31, 2004 11:42 pm
Location: Somewhere over the rainbow
Contact:

Post by Shazz »

CyberBill wrote:Hi Shazz, I think this can be really important for playing with WiFi and being able to exit the game via 'home'.
As I said, a new version is in preparation, a new coder has joined "the team". So currently the home button bug is fixed.
Wifi would be nice, unfortunately I would not be able to test it... But maybe the other coders. What would you expect ? FTP thru wifi to access the ms0 ?
CyberBill wrote:

Code: Select all

sceKernelLoadExec("ms0:/PSP_GAME/SYSDIR/boot.elf",0);
AND...
int exec_p = sceKernelLoadModule("ms0:/PSP_GAME/SYSDIR/boot.elf", 0, 0);
sceKernelStartModule(exec_p, 0, 0, 0, 0);
So this is 2 ways of doing, sceKernelLoadExec is simplier but has huge drawbacks (kernel reboot...), Load/Start module is more tricky to use and depends of the type of file you want to run (ELF or PRX)

but basically in you are in kernel mode, sceKernelLoadExec("ms0:/PSP_GAME/SYSDIR/boot.elf",0); should work for 90% of the ELFs. I think the 10% which not run are due to a missing bootpath or something like that a 0 is not the typical value to pass, but a well defined struct

Using Load/Start module would require :
- having a true PRX to run (currently fw modules and games)
- having enough memory available to load it (as your current app will remain in memory)
- runnign an ELF using this method requires a few patchs of the kernel (look last tyranid pspsdk.h patchs)

hope it helps...
- TiTAN Art Division -
http://www.titandemo.org
pspguy190
Posts: 11
Joined: Sat Jul 23, 2005 7:37 am

Post by pspguy190 »

Hey Shazz what funtions did u use to open homebrew stuff. And how u use them.
hexperience
Posts: 19
Joined: Tue Jul 05, 2005 7:35 am

Post by hexperience »

Link broken? Can't find the zip file.

Cheers
User avatar
Shazz
Posts: 244
Joined: Tue Aug 31, 2004 11:42 pm
Location: Somewhere over the rainbow
Contact:

Post by Shazz »

Please now use the next version called FileAssistant++,

PSP Launcher and FileAssistant have merged....

official homepage : http://www.fileassistant.maxximum.org/
(forum + releases)

TOPIC CLOSED :D
- TiTAN Art Division -
http://www.titandemo.org
pspguy190
Posts: 11
Joined: Sat Jul 23, 2005 7:37 am

Post by pspguy190 »

dosen't look locked
Post Reply