PSPSDK 2025-04-22
Loading...
Searching...
No Matches
psploadexec_kernel.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5 *
6 * psploadexec_kernel.h - Interface to LoadExecForKernel.
7 *
8 * Copyright (c) 2007 - DA (Taken from the 303oe SDK)
9 *
10 */
11
12#ifndef PSPLOADEXEC_KERNEL_H
13#define PSPLOADEXEC_KERNEL_H
14
15#include <pspkerneltypes.h>
16#include <psptypes.h>
17#include <psploadexec.h>
18
22#ifdef __cplusplus
23extern "C" {
24#endif
25
50
51#if defined(_PSP_FW_VERSION) && _PSP_FW_VERSION < 200
61int sceKernelLoadExecBufferPlain(SceSize bufsize, void *buf, struct SceKernelLoadExecParam *param);
62#endif
63
75
76#if defined(_PSP_FW_VERSION) && _PSP_FW_VERSION >= 200
87int sceKernelExitVSHKernel(struct SceKernelLoadExecVSHParam *param);
88#endif
89
99int sceKernelLoadExecVSHDisc(const char *file, struct SceKernelLoadExecVSHParam *param);
100
111
121int sceKernelLoadExecVSHMs1(const char *file, struct SceKernelLoadExecVSHParam *param);
122
132int sceKernelLoadExecVSHMs2(const char *file, struct SceKernelLoadExecVSHParam *param);
133
143int sceKernelLoadExecVSHMs3(const char *file, struct SceKernelLoadExecVSHParam *param);
144
145#if defined(_PSP_FW_VERSION) && _PSP_FW_VERSION >= 300
146/***
147 * Executes a new executable from a memory stick.
148 * It is the function used by the firmware to execute psx games
149 *
150 * @param file - The file to execute.
151 * @param param - Pointer to a ::SceKernelLoadExecVSHParam structure, or NULL.
152 *
153 * @return < 0 on some errors.
154 * @note - Available since firmware 3.00
155*/
156int sceKernelLoadExecVSHMs4(const char *file, struct SceKernelLoadExecVSHParam *param);
157#endif
158
161#ifdef __cplusplus
162}
163#endif
164
165#endif
int sceKernelLoadExecVSHDiscUpdater(const char *file, struct SceKernelLoadExecVSHParam *param)
Executes a new executable from a disc.
int sceKernelLoadExecVSHDisc(const char *file, struct SceKernelLoadExecVSHParam *param)
Executes a new executable from a disc.
int sceKernelLoadExecVSHMs3(const char *file, struct SceKernelLoadExecVSHParam *param)
Executes a new executable from a memory stick.
int sceKernelLoadExecVSHMs1(const char *file, struct SceKernelLoadExecVSHParam *param)
Executes a new executable from a memory stick.
int sceKernelLoadExecVSHMs2(const char *file, struct SceKernelLoadExecVSHParam *param)
Executes a new executable from a memory stick.
int sceKernelExitVSHVSH(struct SceKernelLoadExecVSHParam *param)
Restart the vsh.
unsigned int SceSize
Definition psptypes.h:103
uint32_t u32
Definition psptypes.h:41
Structure to pass to loadexec.
Definition psploadexec.h:61
Structure for LoadExecVSH* functions.
Definition psploadexec_kernel.h:30
void * vshmain_args
vshmain arguments that will be passed to vshmain after the program has exited
Definition psploadexec_kernel.h:42
u32 unk5
unknown flag default value = 0x10000
Definition psploadexec_kernel.h:48
void * argp
Pointer to the arguments strings.
Definition psploadexec_kernel.h:36
SceSize size
Size of the structure in bytes.
Definition psploadexec_kernel.h:32
u32 vshmain_args_size
The size of the vshmain arguments.
Definition psploadexec_kernel.h:40
char * configfile
"/kd/pspbtcnf_game.txt" or "/kd/pspbtcnf.txt" if not supplied (max.
Definition psploadexec_kernel.h:44
SceSize args
Size of the arguments string.
Definition psploadexec_kernel.h:34
const char * key
The key, usually "game", "updater" or "vsh".
Definition psploadexec_kernel.h:38
u32 unk4
An unknown string (max.
Definition psploadexec_kernel.h:46