| View previous topic :: View next topic |
| Author |
Message |
nikocronaldo
Joined: 24 Feb 2008 Posts: 31
|
Posted: Thu Mar 13, 2008 5:08 am Post subject: Load Prx? |
|
|
i want do an application EBOOT to load a prx when i press a determinate button, but don't work(i have the corrects functions to work).
| Code: | if (pad.Buttons & PSP_CTRL_CROSS)
{
loadStartModule("xxx.prx", 0, NULL);
}
|
|
|
| Back to top |
|
 |
JumpR
Joined: 10 Feb 2008 Posts: 25
|
Posted: Thu Mar 13, 2008 8:01 am Post subject: |
|
|
| Could you post a more complete code, like the loadStartModule function? |
|
| Back to top |
|
 |
nikocronaldo
Joined: 24 Feb 2008 Posts: 31
|
Posted: Thu Mar 13, 2008 8:23 am Post subject: |
|
|
| Code: | 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;
} |
|
|
| Back to top |
|
 |
JumpR
Joined: 10 Feb 2008 Posts: 25
|
Posted: Thu Mar 13, 2008 8:35 am Post subject: |
|
|
Just use this:
| Code: | | pspSdkLoadStartModule("ms0:/whatever.prx", PSP_MEMORY_PARTITION_KERNEL); |
|
|
| Back to top |
|
 |
nikocronaldo
Joined: 24 Feb 2008 Posts: 31
|
Posted: Thu Mar 13, 2008 8:47 am Post subject: |
|
|
| JumpR wrote: | Just use this:
| Code: | | pspSdkLoadStartModule("ms0:/whatever.prx", PSP_MEMORY_PARTITION_KERNEL); |
|
I'll try,thanks you. |
|
| Back to top |
|
 |
|