PSP_MODULE_INFO("test",0x1000,1,1);
Makefile:
USE_KERNEL_LIBC = 1
USE_KERNEL_LIBS = 1
I'm trying to get wifi to work in this prx, but when I call pspSdkInetInit() I get the return value 8002013A, which according to a quick google is "Library is not linked yet"
I'm currently running this under a prx loader on 1.5 with psplink, the loader is basically:
Code: Select all
if (pspSdkLoadInetModules() < 0) //Added to see if it would make wifi work in the child prx, it doesn't :(
{
printf("Driver load error\n"); // this doesn't happen
return 0;
}
pspSdkInstallNoDeviceCheckPatch();
pspSdkInstallNoPlainModuleCheckPatch();
loadmodule("myprx",0,0);
sceKernelStartModule(....);
return 0;
I've tryed to add the pspSdkLoadInetModules() function call into the prx, but I get the linker error:host0:/> Loading Module ...
: Error, could not initialise the network 8002013A
: sceNetApctlConnect returns 8002013A (want 0)
Code: Select all
/usr/local/pspdev/psp/sdk/lib/libpspsdk.a(loadmodule.o): In function `pspSdkLoadStartModuleWithArgs':
/tmp/pspdev/pspsdk/src/sdk/loadmodule.c:36: undefined reference to `snprintf'
Perhaps he could drop in and lend a hand :) please :)
I've thrown the code up here: http://localhost.geek.nz/crap/prxtest.tar.gz
Compile each dir, put out.elf and test.prx in the same dir and run out.elf through psplink.
Thanks for any help, I've spent all evening messing with various attempts to fix it.