I'm try to unload Music_prx plugin, because whit it I've some problems!
I've writed this function:
Code: Select all
// Unload Music_prx
SceModule2* Module2 = ne0h_KernelFindModuleByName("Music_prx");
if(Module2!=NULL)
{
printf("Try to unload...\n");
ne0h_KernelStopUnloadModule(Module2->modid);
}
else{
printf("\nMusic_prx s not loaded!\n");
}
I've a lot of function in this prx and all works fine...
This is the exported functions:
Code: Select all
int ne0h_KernelStopUnloadModule(SceUID modID)
{
k1 = pspSdkSetK1(0);
int status;
sceKernelStopModule(modID, 0, NULL, &status, NULL);
sceKernelUnloadModule(modID);
pspSdkSetK1(k1);
return 0;
}
SceModule2* ne0h_KernelFindModuleByName(const char *modname)
{
k1 = pspSdkSetK1(0);
SceModule2* Module2 = sceKernelFindModuleByName(modname);
pspSdkSetK1(k1);
return Module2;
}