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 OSEXEC_H
2#define OSEXEC_H
3
4#include "dolphin/types.h"
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10typedef struct {
11 /* 0x00 */ BOOL valid;
12 /* 0x04 */ u32 restartCode;
13 /* 0x08 */ u32 bootDol;
14 /* 0x0C */ void* regionStart;
15 /* 0x10 */ void* regionEnd;
16 /* 0x18 */ BOOL argsUseDefault;
17 /* 0x14 */ void* argsAddr; // valid only when argsUseDefault = FALSE
19
20typedef int (*appGetNextCallback)(void*, u32*, u32*);
21typedef void (*appInitCallback)(void (*)(char*));
22typedef void* (*appGetEntryCallback)();
24
26void __OSBootDolSimple(u32 doloffset, u32 restartCode, void* regionStart, void* regionEnd, BOOL argsUseDefault, s32 argc, char** argv);
27void __OSBootDol(u32 doloffset, u32 restartCode, const char** argv);
28
29#ifdef __cplusplus
30};
31#endif
32
33#endif /* OSEXEC_H */
void *(* appGetEntryCallback)()
Definition OSExec.h:22
void __OSGetExecParams(OSExecParams *param_0)
Definition OSExec.c:118
void(* appInitCallback)(void(*)(char *))
Definition OSExec.h:21
int(* appGetNextCallback)(void *, u32 *, u32 *)
Definition OSExec.h:20
void __OSBootDol(u32 doloffset, u32 restartCode, const char **argv)
Definition OSExec.c:288
void(* AppLoaderCallback)(appInitCallback *, appGetNextCallback *, appGetEntryCallback *)
Definition OSExec.h:23
void __OSBootDolSimple(u32 doloffset, u32 restartCode, void *regionStart, void *regionEnd, BOOL argsUseDefault, s32 argc, char **argv)
Definition OSExec.c:228
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition OSExec.h:10
void * regionStart
Definition OSExec.h:14
void * regionEnd
Definition OSExec.h:15
void * argsAddr
Definition OSExec.h:17
BOOL argsUseDefault
Definition OSExec.h:16
BOOL valid
Definition OSExec.h:11
u32 restartCode
Definition OSExec.h:12
u32 bootDol
Definition OSExec.h:13
int BOOL
Definition types.h:27
unsigned long u32
Definition types.h:10
signed long s32
Definition types.h:6