PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
loadfile.h
Go to the documentation of this file.
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# (c) 2003 Marcus R. Brown (mrbrown@0xd6.org)
7# Licenced under Academic Free License version 2.0
8# Review ps2sdk README & LICENSE files for further details.
9*/
10
16#ifndef __LOADFILE_H__
17#define __LOADFILE_H__
18
19#include <tamtypes.h>
20
21#include <loadfile-common.h>
22
23/* Extended error codes */
25#define SCE_EBINDMISS 0x10000
27#define SCE_ECALLMISS 0x10001
29#define SCE_ELOADMISS 0x10003
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
48void SifLoadFileExit(void);
49
72int SifLoadModule(const char *path, int arg_len, const char *args);
90int SifLoadStartModule(const char *path, int arg_len, const char *args, int *mod_res);
91
106int SifLoadModuleEncrypted(const char *path, int arg_len, const char *args);
107
126int SifLoadModuleBuffer(void *ptr, int arg_len, const char *args);
147int SifLoadStartModuleBuffer(void *ptr, int arg_len, const char *args, int *mod_res);
148
149int SifStopModule(int id, int arg_len, const char *args, int *mod_res);
150int SifUnloadModule(int id);
151int SifSearchModuleByName(const char *name);
152int SifSearchModuleByAddress(const void *ptr);
153
170int SifLoadElfPart(const char *path, const char *secname, t_ExecData *data);
186int SifLoadElf(const char *path, t_ExecData *data);
199int SifLoadElfEncrypted(const char *path, t_ExecData *data);
200
223int SifIopSetVal(u32 iop_addr, int val, int type);
244int SifIopGetVal(u32 iop_addr, void *val, int type);
245
264int SifExecModuleBuffer(void *ptr, u32 size, u32 arg_len, const char *args, int *mod_res);
282int SifExecModuleFile(const char *path, u32 arg_len, const char *args, int *mod_res);
283
284
302int _SifLoadModule(const char *path, int arg_len, const char *args,
303 int *modres, int fno, int dontwait);
304
305#ifdef __cplusplus
306}
307#endif
308
309#endif /* __LOADFILE_H__ */
int SifLoadModuleEncrypted(const char *path, int arg_len, const char *args)
int SifLoadModule(const char *path, int arg_len, const char *args)
int SifLoadStartModuleBuffer(void *ptr, int arg_len, const char *args, int *mod_res)
void SifLoadFileExit(void)
int SifLoadElf(const char *path, t_ExecData *data)
int SifLoadElfPart(const char *path, const char *secname, t_ExecData *data)
int SifLoadElfEncrypted(const char *path, t_ExecData *data)
int SifExecModuleBuffer(void *ptr, u32 size, u32 arg_len, const char *args, int *mod_res)
int SifLoadFileInit(void)
int SifIopSetVal(u32 iop_addr, int val, int type)
int SifExecModuleFile(const char *path, u32 arg_len, const char *args, int *mod_res)
int _SifLoadModule(const char *path, int arg_len, const char *args, int *modres, int fno, int dontwait)
int SifIopGetVal(u32 iop_addr, void *val, int type)
int SifLoadModuleBuffer(void *ptr, int arg_len, const char *args)
int SifLoadStartModule(const char *path, int arg_len, const char *args, int *mod_res)