hi i'm using FW 2.6 and i'm trying to load a PRX i need to be in kernel mode to load it ?
i need to call pspSdkInstallNoPlainModuleCheckPatch() ????
Loading PRX in user mode???
-
- Posts: 32
- Joined: Wed Mar 17, 2004 6:59 pm
We plan to add PRX loading support to eLoader at some point in the quite near future, so if you're patient then you should get this support for free.
Alternatively if you do implement your own PRX loader, then I'd love to see the source ... ;)
Alternatively if you do implement your own PRX loader, then I'd love to see the source ... ;)
Got a v2.0-v2.80 firmware PSP? Download the eLoader here to run homebrew on it!
The PSP Homebrew Database needs you!
The PSP Homebrew Database needs you!
Manually loading a pspsdk prx file should be realtively painless, all the code and data is stored as a single contiguous block of data referenced by the the first program header, then it is just a case of going through the section headers pulling out the relocation ones and pulling out the relative offset of relocation from the loaded block and fixing it up relative to the place you loaded it at. Final steps are just to zero the .bss and fixup imports (which eLoader will already do).
Doing sony ones is slightly trickier as they actually contain two blocks of data and the relocations could be relative to either, but I cannot see much use for loading sony prxes for the most part.
groepaz's psp doc has info on the relocations, and there is always prxtool which does a cheating version of the reloc fix up already in its prx->elf conversion routine.
Doing sony ones is slightly trickier as they actually contain two blocks of data and the relocations could be relative to either, but I cannot see much use for loading sony prxes for the most part.
groepaz's psp doc has info on the relocations, and there is always prxtool which does a cheating version of the reloc fix up already in its prx->elf conversion routine.