pspsdk-1.0+beta2
psploadexec_kernel.h
Go to the documentation of this file.
1 /*
2  * PSP Software Development Kit - http://www.pspdev.org
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  * $Id$
11  */
12 
13 #ifndef PSPLOADEXEC_KERNEL_H
14 #define PSPLOADEXEC_KERNEL_H
15 
16 #include <pspkerneltypes.h>
17 #include <psploadexec.h>
18 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
28 
36  void * argp;
38  const char * key;
42  void *vshmain_args;
44  char *configfile;
49 };
50 
51 #if _PSP_FW_VERSION < 200
52 
61 int sceKernelLoadExecBufferPlain(SceSize bufsize, void *buf, struct SceKernelLoadExecParam *param);
62 #endif
63 
75 
76 #if _PSP_FW_VERSION >= 200
77 
87 int sceKernelExitVSHKernel(struct SceKernelLoadExecVSHParam *param);
88 #endif
89 
99 int sceKernelLoadExecVSHDisc(const char *file, struct SceKernelLoadExecVSHParam *param);
100 
110 int sceKernelLoadExecVSHDiscUpdater(const char *file, struct SceKernelLoadExecVSHParam *param);
111 
121 int sceKernelLoadExecVSHMs1(const char *file, struct SceKernelLoadExecVSHParam *param);
122 
132 int sceKernelLoadExecVSHMs2(const char *file, struct SceKernelLoadExecVSHParam *param);
133 
143 int sceKernelLoadExecVSHMs3(const char *file, struct SceKernelLoadExecVSHParam *param);
144 
145 #if _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 */
156 int sceKernelLoadExecVSHMs4(const char *file, struct SceKernelLoadExecVSHParam *param);
157 #endif
158 
161 #ifdef __cplusplus
162 }
163 #endif
164 
165 #endif