I need to use the Networking Functions of the PSP to connect to a Access Point and from there on to a server of mine...
All of this has to work from inside a PRX somehow... while a game is running.
I've figured out that loading the Networking Modules from a Kernel PRX seems to fail, for whatever reasons...
And inside a Usermodule they only load decrypted and decompressed from Memory Stick... not from Flash. But that really isn't what I want to know anyway.
So - the module is loaded, yet when I try to start the Module it gives me a 8002013C error, which equals "Library not yet loaded"... as the library loaded fine with kuKernelLoadModule though... it should be!
Further - I also get a error when I try to load the sceNetInetInit Function...
Check it out here in this log...
Code: Select all
Loading pspnet_inet.prx returns 0445AA45.
Starting pspnet_inet.prx returns 8002013C.
sceNetInetInit returns 8002013A.
Also here's the codesnippet I use... it's running from inside it's own Userthread in a Usermode Module.
Code: Select all
// Target Memory Space
SceUID mpid = PSP_MEMORY_PARTITION_USER;
// User Module Loading Options
SceKernelLMOption option;
memset(&option, 0, sizeof(option));
option.size = sizeof(option);
option.mpidtext = mpid;
option.mpiddata = mpid;
option.position = 0;
option.access = 1;
result = kuKernelLoadModule("ms0:/km/pspnet_inet.prx", 0, &option);
sprintf(log, "Loading pspnet_inet.prx returns %08X.\n", result);
debuglog(log);
if(!(result & 0x80000000))
{
int startstatus = 0;
result = sceKernelStartModule(result, 0, NULL, &startstatus, NULL);
sprintf(log, "Starting pspnet_inet.prx returns %08X.\n", result);
debuglog(log);
}
result = sceNetInetInit();
sprintf(log, "sceNetInetInit returns %08X.\n", result);
debuglog(log);