PSPSDK 2024-10-31
Loading...
Searching...
No Matches
LoadExec Library

Data Structures

struct  SceKernelLoadExecParam
 Structure to pass to loadexec. More...
 

Functions

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.
 

Detailed Description

Function Documentation

◆ sceKernelExitGame()

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

Referenced by __attribute__().

◆ sceKernelLoadExec()

int sceKernelLoadExec ( const char file,
struct SceKernelLoadExecParam param 
)

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

Parameters
file- The file to execute.
param- Pointer to a SceKernelLoadExecParam structure, or NULL.
Returns
< 0 on error, probably.

◆ sceKernelRegisterExitCallback()

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 sceKernelRegisterExitCallback(int cbid)
Register callback.
void sceKernelExitGame(void)
Exit game and go back to the PSP browser.
int sceKernelCreateCallback(const char *name, SceKernelCallbackFunction func, void *arg)
Create callback.
#define NULL
Definition psptypes.h:31
float x
Definition psptypes.h:0
Parameters
cbidCallback id
Returns
< 0 on error