1. Get the latest PSPSDK
2. Take a look at the usb/storage sample, rip the USB code out into a separate nice little file
3. Add the file to your project, and call it at startup.
Results:
As soon as you have started your program on your PSP, you'll be able to USB transfer in new builds of your program. So after you exit it, all you need to do to launch your newest build is to press X twice, no more navigating over to USB mode in the PSP main menu!
I've tried to have my program launch itself with sceKernelLoadExec to skip the two X presses, but I'm getting some hangs.
How to shorten your dev cycle
I've seen a launcher utility that was released which does this.. unfortunately it doesn't save too much time, because after running your program, when you exit, you still have to reload the launcher, and the main time consumer IMHO is that damn PSP screen. Once you have sceKernelLoadExec working correctly, is it possible to setup a launcher which can snag the HOME key, and exit back to itself? That would save a tremendous amount of time.
LiQuiD8d
LiQuiD8d
Yep I wonder how to catch, in fact ,not the callback, but the sceKernelExitGame() event which is called by the exit callback...
Catching/redirecting this call would allow to go back to the file browser (PSP Laucnher tool in this example) and not the PSP OS.... (if my thread is still alive...)
I have to think more about it ;-) If somebody has a good idea...
- overriding the exit callback by a homemade one ?
- patching the sceKernelExitGame() (where ? in RAM)?
- finding an exception vector ?
Catching/redirecting this call would allow to go back to the file browser (PSP Laucnher tool in this example) and not the PSP OS.... (if my thread is still alive...)
I have to think more about it ;-) If somebody has a good idea...
- overriding the exit callback by a homemade one ?
- patching the sceKernelExitGame() (where ? in RAM)?
- finding an exception vector ?
- TiTAN Art Division -
http://www.titandemo.org
http://www.titandemo.org
Re: How to shorten your dev cycle
Wow! great idea, your method and sceKernelLoadExec works fine for me, i can reload app without exit to PSP menu.ector wrote:1. Get the latest PSPSDK
2. Take a look at the usb/storage sample, rip the USB code out into a separate nice little file
3. Add the file to your project, and call it at startup.
Results:
As soon as you have started your program on your PSP, you'll be able to USB transfer in new builds of your program. So after you exit it, all you need to do to launch your newest build is to press X twice, no more navigating over to USB mode in the PSP main menu!
I've tried to have my program launch itself with sceKernelLoadExec to skip the two X presses, but I'm getting some hangs.
Good day!