PDA

View Full Version : PRX help



benh
January 31st, 2007, 13:01
Hi all

I am thinking of making a plugin for dark alexs custom firmware 3.03 OE - C. I have my flasher app made but the problem is i dont know how to make a PRX file and i was wondering if someone could help?

I could do with an example makefile for making the PRX and anything else you think that i need to make them.

Please help

Accordion
January 31st, 2007, 16:01
i cant help...but what are you trying to incorporate in your .prx...or is it more a proof of concept for yourself?

EvilDooinz
February 1st, 2007, 02:42
Add these lines to your make file

Build_prx = 1

LDFLAGS = -mno-crt0 -nostartfiles

oh and you will have to change the main function to
/* main */
int main_thread(SceSize args, void *argp);
and add this function
/*module start */
int module_start(SceSize args, void *argp)
{
SceUID th = sceKernelCreateThread("main_thread", main_thread, 0x20, 0x 10000, 0, NULL);

if (th >= 0)
{
sceKernelStartThread(th, args, argp);
}

return 0;
}

benh
February 1st, 2007, 08:42
thanks for your help evildooinz