yavimaya escribió:krosk escribió:
funcionando en kernel 3.xx-4.xx-5.xx
Esto demuestra que es factible en ese kernel, ala, pensad a ver como solucionais el problema, no es dificil jeje
Tu sabes algo que los demas ignoramos

No creas, mi experiencia en programación con psp no es gran cosa.
Por cierto, un gran ejemplo de como cargar prx en kernel en 5.xx es este:
#include <pspuser.h>
#include <pspsdk.h>
#include <pspdebug.h>
#include <string.h>
#define printf pspDebugScreenPrintf
PSP_MODULE_INFO("PRXLOADER", 0, 1, 1);
PSP_MAIN_THREAD_ATTR (PSP_THREAD_ATTR_USER);
static SceUID modid;
SceUID load_module (const char *path, int flags, int type)
{
SceKernelLMOption option;
SceUID mpid;
if (type == 0) {
mpid = 1;
} else {
mpid = 2;
}
memset (&option, 0, sizeof(option));
option.size = sizeof(option)
option.mpidtext = mpid;
option.mpiddata = mpid;
option.position = 0;
option.access = 1;
return sceKernelLoadModule(path, flags, &option);
}
int main (int argc, char **argv)
{
printf("Loading module...");
modid = load_module ("module.prx", 0, 0);
if (modid < 0) {
printf("FAILED! with 0x%08X\n", modid);
return -1;
}
printf("OK\nStarting module...");
int status;
int res = sceKernelStartModule(modid, 0, NULL, &status, NULL);
if(res < 0){
printf("FAILED! with 0x%08X\n", res);
return -1;
}
if(status){
printf("FAILED! with 0x%08X\n", status);
}
printf("OK\n");
return 0;
}
Este debería funcionar en todos los kernels