Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
OSExec.h
Go to the documentation of this file.
1#ifndef _REVOLUTION_OSEXEC_H_
2#define _REVOLUTION_OSEXEC_H_
3
4#include <revolution/types.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10typedef struct {
11 BOOL valid;
12 u32 restartCode;
13 u32 bootDol;
14 void* regionStart;
15 void* regionEnd;
16 int argsUseDefault;
17 void* argsAddr;
19
20typedef int (*appGetNextCallback)(void*, u32*, u32*);
21typedef void (*appInitCallback)(void (*)(char*));
22typedef void* (*appGetEntryCallback)();
24
25OSExecParams* __OSExecParams AT_ADDRESS(0x800030F0);
26s32 __OSAppLoaderOffset AT_ADDRESS(0x800030F4);
27
28void OSExecv(const char* dolfile, const char** argv);
29void OSExecl(const char* dolfile, const char* arg0, ...);
30
31#ifdef __cplusplus
32}
33#endif
34
35#endif
int BOOL
Definition types.h:33
unsigned long u32
Definition types.h:12
signed long s32
Definition types.h:11
void *(* appGetEntryCallback)()
Definition OSExec.h:22
void(* appInitCallback)(void(*)(char *))
Definition OSExec.h:21
int(* appGetNextCallback)(void *, u32 *, u32 *)
Definition OSExec.h:20
void OSExecl(const char *dolfile, const char *arg0,...)
Definition OSExec.c:363
void(* AppLoaderCallback)(appInitCallback *, appGetNextCallback *, appGetEntryCallback *)
Definition OSExec.h:23
void OSExecv(const char *dolfile, const char **argv)
Definition OSExec.c:351
OSExecParams *__OSExecParams AT_ADDRESS(0x800030F0)
Definition OSExec.h:13