Code: Select all
if (pad.Buttons & PSP_CTRL_CROSS)
{
loadStartModule("xxx.prx", 0, NULL);
}
Code: Select all
if (pad.Buttons & PSP_CTRL_CROSS)
{
loadStartModule("xxx.prx", 0, NULL);
}
Code: Select all
int loadStartModule(const char *name, int argc, char **argv)
{
SceUID modid;
int status;
char args[128];
int len;
modid = sceKernelLoadModule(name, 0, NULL);
if(modid >= 0)
{
len = build_args(args, name, argc, argv);
modid = sceKernelStartModule(modid, len, (void *) args, &status, NULL);
}
else
{
pspDebugScreenSetTextColor(rosso);
printf("Error loading module %s\n", name);
}
return modid;
}
Code: Select all
pspSdkLoadStartModule("ms0:/whatever.prx", PSP_MEMORY_PARTITION_KERNEL);
I'll try,thanks you.JumpR wrote:Just use this:Code: Select all
pspSdkLoadStartModule("ms0:/whatever.prx", PSP_MEMORY_PARTITION_KERNEL);