i am new to developing for the psp and want this code to work. i want display the current firmware version onscreen when the eboot has been run
Code:#include <pspkernel.h>
#include <pspdebug.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <pspsdk.h>
#include <pspctrl.h>
#include "systemctrl_se.h"
#include "pspvshbridge.h"
#include "systemctrl.h"
MODULE_INFO ....
DEFINE....
int main (int argc, char **argv)
{
pspDebugScreenInit();
getFirmwareVersion(void)
{
u32 firmware=(u32) sceKernelDevkitVersion();
printf("%i" , (((firmware&0x0f000000)>>24)*100)+(((firmware&0x000f0000)>>16)*10)+((firmware&0x00000f00)>>8)));
}
