| View previous topic :: View next topic |
| Author |
Message |
Phantom8
Joined: 17 Jun 2005 Posts: 30
|
Posted: Fri Feb 10, 2006 3:46 pm Post subject: Launching an homebrew within another homebrew |
|
|
I'm working on a screen shot tool which allows you to take screen shots from other UMD games/homebrew. I know there are a couple available, but I want to make my own.
I have not much problem in getting screenshots for UMD games, but I can't seem to get any homebrew to load properly within my screen shot program. I used sceKernelLoadModule, but it always returns with memory block allocation failure when loading homebrew. I checked I still have 24MB of total free memory left before launching another homebrew. Anyone has any ideas? TIA! |
|
| Back to top |
|
 |
groepaz

Joined: 01 Sep 2005 Posts: 305
|
|
| Back to top |
|
 |
Phantom8
Joined: 17 Jun 2005 Posts: 30
|
Posted: Sat Feb 11, 2006 12:41 pm Post subject: |
|
|
| groepaz, thanks for the suggestion! Is creating a prx in kernel space the only way to solve the problem? Will it still work if the prx run under user space? |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Sat Feb 11, 2006 12:45 pm Post subject: |
|
|
| A possible alternative is to link your elf at a really low address (think 0x88004000 is the lowest you can go and still run), look at psp-packer's stub source for ideas how to relink an elf to a different address. However the kernel mode prx is the best solution as it moves your code completely out of user memory, although if you are making screenshots using png you will be tight for space as that lib is _big_ :) |
|
| Back to top |
|
 |
Phantom8
Joined: 17 Jun 2005 Posts: 30
|
Posted: Mon Feb 13, 2006 5:28 pm Post subject: |
|
|
| Thanks for the hint, TyRaNiD! I think I'll stick with the kernel prx approach if I can get it to work. lol. |
|
| Back to top |
|
 |
|