mirror of
https://github.com/libretro/RetroArch
synced 2024-12-29 12:31:05 +00:00
86b47b4859
* Added newlib changes * Add action to launch PPSSPP simulator * Remove legacy config for the stack and heap * Add pthread * Simplify kernel_functions and improve references to HAVE_KERNEL_PRX * Add some flags * Improve audio init/deinit * Improve exit by clicking home * Add CI for PSP1 * Update PSP.yml
41 lines
954 B
C
41 lines
954 B
C
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
#include <pspsdk.h>
|
|
#include <psploadexec_kernel.h>
|
|
|
|
PSP_MODULE_INFO("kernel_functions", PSP_MODULE_KERNEL, 0, 0);
|
|
PSP_MAIN_THREAD_ATTR(0);
|
|
|
|
void exitspawn_kernel(const char *fileName, SceSize args, void *argp)
|
|
{
|
|
int k1;
|
|
struct SceKernelLoadExecVSHParam game_param;
|
|
|
|
memset(&game_param,0,sizeof(game_param));
|
|
|
|
game_param.size = sizeof(game_param);
|
|
game_param.args = args;
|
|
game_param.argp = argp;
|
|
game_param.key = "game";
|
|
game_param.vshmain_args_size = 0;
|
|
game_param.vshmain_args = NULL;
|
|
game_param.configfile = 0;
|
|
game_param.unk4 = 0;
|
|
game_param.unk5 = 0x10000;
|
|
|
|
k1 = pspSdkSetK1(0);
|
|
sceKernelLoadExecVSHMs2(fileName, &game_param);
|
|
pspSdkSetK1(k1);
|
|
}
|
|
|
|
int module_start(SceSize args, void *argp)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int module_stop(void)
|
|
{
|
|
return 0;
|
|
}
|