mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 15:01:53 -04:00
2453c0e333
* move dolsdk2004 over * cleanup some temp work * finish and cleanup gf * b_bh done * d_a_e_mb done
36 lines
791 B
C
36 lines
791 B
C
#ifndef _DOLPHIN_OSEXEC_H_
|
|
#define _DOLPHIN_OSEXEC_H_
|
|
|
|
#include <dolphin/types.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct {
|
|
BOOL valid;
|
|
u32 restartCode;
|
|
u32 bootDol;
|
|
void* regionStart;
|
|
void* regionEnd;
|
|
int argsUseDefault;
|
|
void* argsAddr;
|
|
} OSExecParams;
|
|
|
|
typedef int (*appGetNextCallback)(void*, u32*, u32*);
|
|
typedef void (*appInitCallback)(void (*)(char*));
|
|
typedef void* (*appGetEntryCallback)();
|
|
typedef void (*AppLoaderCallback)(appInitCallback*, appGetNextCallback*, appGetEntryCallback*);
|
|
|
|
OSExecParams* __OSExecParams AT_ADDRESS(0x800030F0);
|
|
s32 __OSAppLoaderOffset AT_ADDRESS(0x800030F4);
|
|
|
|
void OSExecv(const char* dolfile, const char** argv);
|
|
void OSExecl(const char* dolfile, const char* arg0, ...);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|