i am trying to make 2 threads in the prx. i have these:
Code: Select all
/* fat_plugin -- alias for module_start. Creates plugin worker thread and exits */
int fat_plugin (SceSize argc, void* argp)
{
u32 func = 0x80000000 | (u32)fat_ninja;
SceUID thread = sceKernelCreateThread("fat_ninja",(void*)func, 0x30, 0x10000, 0, NULL);
if (thread >= 0) {
sceKernelStartThread (thread, argc, argp);
}
return 0;
}
/* ninja_plugin -- alias for module_start. Creates plugin worker thread and exits */
int ninja_plugin (SceSize argc, void* argp)
{
u32 func = 0x80000000 | (u32)ninja_style;
SceUID thread = sceKernelCreateThread("ninja_style",(void*)func, 0x30, 0x10000, 0, NULL);
if (thread >= 0) {
sceKernelStartThread (thread, argc, argp);
}
return 0;
}
Code: Select all
int module_start (SceSize argc, void* argp) __attribute__((alias("fat_plugin")));
int module_start (SceSize argc, void* argp) __attribute__((alias("ninja_plugin")));
tia