diff options
| author | Xavi Del Campo <xavi.dcr@tutanota.com> | 2020-01-31 10:32:23 +0100 |
|---|---|---|
| committer | Xavi Del Campo <xavi.dcr@tutanota.com> | 2020-01-31 10:32:23 +0100 |
| commit | 7c24e9a9b02b04dcaf9507acb94091ea70a2c02d (patch) | |
| tree | c28d0748652ad4b4222309e46e6cfc82c0906220 /libpsx/include/runexe.h | |
| parent | a2b7b6bb1cc2f4a3258b7b2dbc92399d151f864d (diff) | |
| download | psxsdk-7c24e9a9b02b04dcaf9507acb94091ea70a2c02d.tar.gz | |
Imported pristine psxsdk-20190410 from official repo
Diffstat (limited to 'libpsx/include/runexe.h')
| -rw-r--r-- | libpsx/include/runexe.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libpsx/include/runexe.h b/libpsx/include/runexe.h new file mode 100644 index 0000000..c42c9ee --- /dev/null +++ b/libpsx/include/runexe.h @@ -0,0 +1,17 @@ +#ifndef _PSXSDK_RUNEXE_H +#define _PSXSDK_RUNEXE_H + +/** + * Replaces running executable code with code from another executable + * stored in a memory buffer and starts executing at the starting point for the new code. + * The executable must be in PSX-EXE format (such as generated by elf2exe). + * Moreover, PSX_InitEx() must have been initialized by specifying the PSX_INIT_SAVESTATE flag. + * @param exeBuffer Pointer to memory buffer where executable is stored + * @return On success this function has the effect of making the PlayStation + * run another executable, so obviously this function will never return in that case. + * This function will only return on failure, where it will return 0. + */ + +int PSX_RunExe(void *exeBuffer); + +#endif |
