forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PSP Launcher : small tool for lazy people :D

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Shazz



Joined: 31 Aug 2004
Posts: 244
Location: Somewhere over the rainbow

PostPosted: Mon Jul 18, 2005 3:15 am    Post subject: PSP Launcher : small tool for lazy people :D Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
emumaniac



Joined: 08 May 2005
Posts: 79

PostPosted: Mon Jul 18, 2005 4:13 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
RATiX



Joined: 30 Apr 2005
Posts: 48

PostPosted: Mon Jul 18, 2005 5:31 am    Post subject: Reply with quote

One question: is it possible for the PSP to be doing stuff (like playing a song) while in USB mode?
Back to top
View user's profile Send private message
Shazz



Joined: 31 Aug 2004
Posts: 244
Location: Somewhere over the rainbow

PostPosted: Mon Jul 18, 2005 5:42 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
F9zDark



Joined: 02 Apr 2005
Posts: 127

PostPosted: Mon Jul 18, 2005 8:09 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message AIM Address
Shazz



Joined: 31 Aug 2004
Posts: 244
Location: Somewhere over the rainbow

PostPosted: Mon Jul 18, 2005 5:25 pm    Post subject: Reply with quote

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....

Quote:
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
Back to top
View user's profile Send private message Visit poster's website
blaze



Joined: 18 Jul 2005
Posts: 1

PostPosted: Mon Jul 18, 2005 6:54 pm    Post subject: could you post she code? Reply with quote

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


thanks
Back to top
View user's profile Send private message Send e-mail
KaL



Joined: 03 Apr 2005
Posts: 41

PostPosted: Mon Jul 18, 2005 9:46 pm    Post subject: Reply with quote

[MISREAD THE WHOLE THING]
Back to top
View user's profile Send private message
raiser



Joined: 29 Mar 2005
Posts: 4

PostPosted: Tue Jul 19, 2005 10:42 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Shazz



Joined: 31 Aug 2004
Posts: 244
Location: Somewhere over the rainbow

PostPosted: Wed Jul 20, 2005 12:56 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Cpasjuste



Joined: 29 May 2005
Posts: 214

PostPosted: Wed Jul 20, 2005 1:33 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
71M



Joined: 21 Jun 2005
Posts: 122
Location: London

PostPosted: Mon Jul 25, 2005 8:02 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Shazz



Joined: 31 Aug 2004
Posts: 244
Location: Somewhere over the rainbow

PostPosted: Mon Jul 25, 2005 5:38 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
evilo



Joined: 22 Apr 2004
Posts: 230

PostPosted: Mon Jul 25, 2005 7:00 pm    Post subject: Reply with quote

hmm hmm... interessant...
Back to top
View user's profile Send private message Visit poster's website
CyberBill



Joined: 26 Jul 2005
Posts: 86
Location: Redmond, WA

PostPosted: Wed Jul 27, 2005 5:37 pm    Post subject: Reply with quote

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:

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
Back to top
View user's profile Send private message AIM Address MSN Messenger
Shazz



Joined: 31 Aug 2004
Posts: 244
Location: Somewhere over the rainbow

PostPosted: Wed Jul 27, 2005 9:27 pm    Post subject: Reply with quote

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:

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
Back to top
View user's profile Send private message Visit poster's website
pspguy190



Joined: 23 Jul 2005
Posts: 11

PostPosted: Mon Aug 15, 2005 10:36 am    Post subject: Reply with quote

Hey Shazz what funtions did u use to open homebrew stuff. And how u use them.
Back to top
View user's profile Send private message
hexperience



Joined: 05 Jul 2005
Posts: 19

PostPosted: Sun Aug 21, 2005 3:02 pm    Post subject: Reply with quote

Link broken? Can't find the zip file.

Cheers
Back to top
View user's profile Send private message
Shazz



Joined: 31 Aug 2004
Posts: 244
Location: Somewhere over the rainbow

PostPosted: Sun Aug 21, 2005 7:36 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
pspguy190



Joined: 23 Jul 2005
Posts: 11

PostPosted: Wed Aug 31, 2005 7:19 am    Post subject: Reply with quote

dosen't look locked
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group