Hey guys
I have a question to PSP Programming.
How do I know which Header File I have to include?
For example if I have functions that try to read out which PSP Model I have:
Which Header File do I need besides pspkernel.h and pspdebug.h?
And how do I have to edit the makefile then?
Hope you understood my question and can help me
Revenger
I have a question to PSP Programming.
How do I know which Header File I have to include?
For example if I have functions that try to read out which PSP Model I have:
Code:
#include <pspkernel.h>
#include <pspdebug.h>
#include <some other headers for sceKernelGetModel() and kuKernelGetModel().h>
#define printf pspDebugScreenPrintf
PSP_MODULE_INFO("Homebrew", 0, 1, 1);
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);
int main(int argc, char *argv[])
{
pspDebugScreenInit();
int kuKernelGetModel(void);
if(kuKernelGetModel() == 0)
{
printf("It's a Classic");
}
else if(kuKernelGetModel() == 1)
{
printf("It's a Slim");
}
else if {kuKernelGetModel() == 2)
{
printf("It's a Brite");
}
else if (kuKernelGetModel() == 4)
{
printf("It's a PSPgo");
}
else
{
printf("Unknown PSP type");
}
}
return 0;
}
Which Header File do I need besides pspkernel.h and pspdebug.h?
And how do I have to edit the makefile then?
Hope you understood my question and can help me
Revenger