Sunday, June 26, 2005

sceKernelLoadModule

SceKernelLMOption lmo={0,0,0,0,SCE_KERNEL_LM_POS_Low,0,""};
SceKernelSMOption smo={0,0,0,0,0};
SceUID mid=sceKernelLoadModule("ms0:/KD/pspnet.prx",0,&lmo);
itohex(mid,wlans);

// itoan(mid,wlans,sizeof(wlans)-1);
// wlans[0]=mid+'0';
// wlans[1]='\0';
pgPrint(1,2,0xffff,wlans);
if(mid!=0){
n=sceKernelUnloadModule(mid);
itohex(n,wlans);
// itoan(n,wlans,sizeof(wlans)-1);
// wlans[0]=n+'0';
// wlans[1]='\0';
pgPrint(1,3,0xffff,wlans);
}

But sceKernelLoadModule() returns 0x80020146, which reads:

SCE_KERNEL_ERROR_PROHIBIT_LOADMODULE_DEVICE = 0x80020146,

Of cause I have copied the PRX files to the MSD.

No comments: