| View previous topic :: View next topic |
| Author |
Message |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Wed Mar 12, 2008 7:14 am Post subject: Get sceKernelExitGame memory addres |
|
|
I've made a memory dump (in case I need it) using FreePlay's memory dumper.
Do I need to disassemble it?
Or the only thing I need is create a simple program that gets the function address by doing pointer = &function ? _________________
Upgrade your PSP |
|
| Back to top |
|
 |
JumpR
Joined: 10 Feb 2008 Posts: 25
|
Posted: Thu Mar 13, 2008 7:58 am Post subject: |
|
|
Use the following function from the 3.80 M33 SDK:
| Code: | | sctrlHENFindFunction("sceLoadExec", "LoadExecForUser", 0x05572A5F); |
Get that information here: http://silverspring.lan.st/3.5x/index.html
Of course, you can also hardcode the offset, although it's better to keep it dynamic. For it, load up 'loadexec.prx' in prxtool, dissassemble it and search for 05572A5F, see at what adress it is and use it like this:
| Code: | SceModule2* mod = sceKernelFindModuleByName("sceLoadExec");
u32 text_addr = mod->text_addr;
// replace 0x0000 with the offset
Loc_sceKernelExitGame = text_addr + 0x0000; |
|
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Thu Mar 13, 2008 8:28 am Post subject: |
|
|
Thank you!!
I will do it ;) _________________
Upgrade your PSP |
|
| Back to top |
|
 |
|