Load Prx?

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

Moderators: cheriff, TyRaNiD

Post Reply
nikocronaldo
Posts: 31
Joined: Sun Feb 24, 2008 7:19 am

Load Prx?

Post by nikocronaldo »

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: Select all

		if (pad.Buttons & PSP_CTRL_CROSS)
{
loadStartModule("xxx.prx", 0, NULL);
		
}
JumpR
Posts: 25
Joined: Sun Feb 10, 2008 1:07 am

Post by JumpR »

Could you post a more complete code, like the loadStartModule function?
nikocronaldo
Posts: 31
Joined: Sun Feb 24, 2008 7:19 am

Post by nikocronaldo »

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;
}
JumpR
Posts: 25
Joined: Sun Feb 10, 2008 1:07 am

Post by JumpR »

Just use this:

Code: Select all

pspSdkLoadStartModule("ms0:/whatever.prx", PSP_MEMORY_PARTITION_KERNEL);
nikocronaldo
Posts: 31
Joined: Sun Feb 24, 2008 7:19 am

Post by nikocronaldo »

JumpR wrote:Just use this:

Code: Select all

pspSdkLoadStartModule("ms0:/whatever.prx", PSP_MEMORY_PARTITION_KERNEL);
I'll try,thanks you.
Post Reply