EDIT:Sorry, I guess this should be in the PSP Software Development discussion forum! Oops.
I've spent a fair few minutes searching the forums but can't find an answer, so please bear with me...
1) My PSP is a 1.50 machine
2) I've includes the USB_stor module in my game and this works fine
3) I've got a menu option "Restart" which alls sceKernelLoadModule() and sceKernelStartModule() . Will this work with a PBP file or do I need the plain ELF on the ms as well?
4) I'm guessing that for USB_stor to work my app needs to run in Kernel mode. I've read that this CAN be risky and could lead to a brick. How likely is this? Is it relatively easy to accidentally overwrite flash? I've disabled the USB storage for the moment as I don't want to end up with a brick - I crash the PSP enough as it is...
I'm at work at the moment so can't try any of this out at the moment, but thought I'd pick some of the large brains here!
Thanks in advance
Relaunch myself?
Indeed FileAssistant++ does allow you to do this kind of thing.
Check out CFrameWork.cpp to see how to start your application in Kernel mode and CExecutableFileHandler.cpp (nice name!) for how to run your PBP or ELF.
Cheers,
71M
http://www.easy-monkey.co.uk/FileAssistant.rar
Check out CFrameWork.cpp to see how to start your application in Kernel mode and CExecutableFileHandler.cpp (nice name!) for how to run your PBP or ELF.
Cheers,
71M
http://www.easy-monkey.co.uk/FileAssistant.rar
Re: Relaunch myself?
PompeySteve, from storage/main.c:
/**
* Define the module info section
*
* 2nd arg must 0x1000 so __init is executed in
* kernelmode for our loaderInit function
*/
PSP_MODULE_INFO("USBSample", 0x1000, 0, 1);
/**
* THREAD_ATTR_USER causes the thread that the startup
* code (ctr0.c) starts this program in to be in usermode
* even though the module was started in kernelmode
*/
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER);
-- so your presumption (4) is incorrect.
There is similar thred: http://forums.ps2dev.org/viewtopic.php? ... elloadexec
but no final solution -- only cLoUd's statement that he is able to reload app without exit to PSP menu.
Does anybody know ho to restart app without leaving it, so we can get rid of PSP splash screen during testing/debugging stage?
/**
* Define the module info section
*
* 2nd arg must 0x1000 so __init is executed in
* kernelmode for our loaderInit function
*/
PSP_MODULE_INFO("USBSample", 0x1000, 0, 1);
/**
* THREAD_ATTR_USER causes the thread that the startup
* code (ctr0.c) starts this program in to be in usermode
* even though the module was started in kernelmode
*/
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER);
-- so your presumption (4) is incorrect.
There is similar thred: http://forums.ps2dev.org/viewtopic.php? ... elloadexec
but no final solution -- only cLoUd's statement that he is able to reload app without exit to PSP menu.
Does anybody know ho to restart app without leaving it, so we can get rid of PSP splash screen during testing/debugging stage?
I use this very same method for developing on FileAssistant++.
If you notice when you press SELECT the screen blacks out and it appears to reboot, infact it is reloading the EBOOT.PBP.
USB is automatically turned on when the app starts so I can upload a new executable, press SELECT and check the new file, very sweet indeed!
71M
If you notice when you press SELECT the screen blacks out and it appears to reboot, infact it is reloading the EBOOT.PBP.
USB is automatically turned on when the app starts so I can upload a new executable, press SELECT and check the new file, very sweet indeed!
71M