LoadExec Library


Structures de données

struct  SceKernelLoadExecParam
 Structure to pass to loadexec. Plus de détails...

Fonctions

int sceKernelRegisterExitCallback (int cbid)
 Register callback.
void sceKernelExitGame (void)
 Exit game and go back to the PSP browser.
int sceKernelLoadExec (const char *file, struct SceKernelLoadExecParam *param)
 Execute a new game executable, limited when not running in kernel mode.


Documentation des fonctions

void sceKernelExitGame ( void   ) 

Exit game and go back to the PSP browser.

Note:
You need to be in a thread in order for this function to work

int sceKernelLoadExec ( const char *  file,
struct SceKernelLoadExecParam param 
)

Execute a new game executable, limited when not running in kernel mode.

Paramètres:
file - The file to execute.
param - Pointer to a SceKernelLoadExecParam structure, or NULL.
Renvoie:
< 0 on error, probably.

int sceKernelRegisterExitCallback ( int  cbid  ) 

Register callback.

Note:
By installing the exit callback the home button becomes active. However if sceKernelExitGame is not called in the callback it is likely that the psp will just crash.
Example:
 int exit_callback(void) { sceKernelExitGame(); }

 cbid = sceKernelCreateCallback("ExitCallback", exit_callback, NULL);
 sceKernelRegisterExitCallback(cbid);
Paramètres:
cbid Callback id
Renvoie:
< 0 on error


Traduit par ADreNaLiNe-DJ pour SmartPSP.net | Généré le Fri Apr 24 11:46:30 2009 pour pspsdk-1.0+beta2 par  doxygen 1.5.1