I exported some functions, the first returns an integer, another writes to screen a junkie text.
calling from the main program, the first writes my integer to screen, the second doesn't do anything, seems to just skip.
the prx code is this
Code: Select all
#include <pspsdk.h>
#include <pspkernel.h>
#include <pspdisplay_kernel.h>
#include <stdio.h>
#include <pspdebug.h>
#include <pspdisplay.h>
#include <pspctrl.h>
#include <stdio.h>
#include <string.h>
PSP_MODULE_INFO("myLib", 0x1006, 1, 1);
PSP_MAIN_THREAD_ATTR(0);
u32 k1;
void write_me(int number){
k1 = pspSdkSetK1(0);
printf("(%d)",number);
//next line blows up the compile :P
//pspDebugScreenPrintf("(%d)", number);
pspSdkSetK1(k1);
}
int module_start(SceSize args, void *argp)
{
printf("PRX module starting...\n");
return 0;
}
int module_stop()
{
return 0;
}
int give_me(){
return 5;
}
Why?