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 ?
Get sceKernelExitGame memory addres
-
- Posts: 409
- Joined: Tue Oct 09, 2007 4:22 am
Use the following function from the 3.80 M33 SDK:
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: Select all
sctrlHENFindFunction("sceLoadExec", "LoadExecForUser", 0x05572A5F);
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: Select all
SceModule2* mod = sceKernelFindModuleByName("sceLoadExec");
u32 text_addr = mod->text_addr;
// replace 0x0000 with the offset
Loc_sceKernelExitGame = text_addr + 0x0000;
-
- Posts: 409
- Joined: Tue Oct 09, 2007 4:22 am