Is there any way of loading an EBOOT.PBP from somewhere in flash0/1/2/3 ?
If I read it into a buffer and load it from memory it breaks some homebrew presumably due to the lack of bootpath.
Load EBOOT from flash ?
So you can load and run it but it crashes? Let me turn your question into another: we all know that prx embedded in 3.00+ EBOOTs don't have CWD working and everyone willing to load something in the same folder can't use relative paths but have to reconstruct bootpath; shouldn't it be a goot idea to force a CWD automagically when it's the case and explicitly in cases like Torch's?If I read it into a buffer and load it from memory it breaks some homebrew presumably due to the lack of bootpath.
So the question is: how to force an arbitrary CWD into an executable context?
The cwd is set automatically by newlib by using the parameter of the module, which is usually the path. You can always load the prx of the eboot from a buffer, and pass it a path as argument so newlib would set the cwd from it.
For flash3 in the slim, you should be able to use sceKernelLoadModuleForLoadExecVSHMs3 to load the eboot.pbp or sceKernelLoadExecVSHMs3 to loadexec it, that's what sony was using in 3.6 for 1seg.pbp.
For flash3 in the slim, you should be able to use sceKernelLoadModuleForLoadExecVSHMs3 to load the eboot.pbp or sceKernelLoadExecVSHMs3 to loadexec it, that's what sony was using in 3.6 for 1seg.pbp.
-
- Posts: 409
- Joined: Tue Oct 09, 2007 4:22 am
newlib is one of the things installed when you install the toolchain :)
http://en.wikipedia.org/wiki/Newlib
http://en.wikipedia.org/wiki/Newlib
-
- Posts: 409
- Joined: Tue Oct 09, 2007 4:22 am
-
- Posts: 409
- Joined: Tue Oct 09, 2007 4:22 am