Prx loading problems!

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
reigel
Posts: 14
Joined: Fri Jul 15, 2005 10:41 pm

Prx loading problems!

Post by reigel »

Hey guys,
after i update my pspsdk + toolchain I'm not able to load prx module. I'm in kernel mode and use this function to load a module :

Code: Select all

int prx;
prx = sceKernelLoadModule("flash0:/kd/sysmem.prx", 0, 0);
sceKernelStartModule(prx, 0, 0, 0, 0);
this had worked till I updated my sdk! Can anyone helpme? Thx
User avatar
sherpya
Posts: 61
Joined: Mon Oct 03, 2005 5:49 pm

Post by sherpya »

you need to add this in your code

Code: Select all

/**
 * Function that is called from _init in kernelmode before the
 * main thread is started in usermode.
 */
__attribute__ ((constructor)) void loaderInit()
{
    pspKernelSetKernelPC();
    pspSdkInstallNoDeviceCheckPatch();
    pspDebugInstallKprintfHandler(NULL);
}
Post Reply