Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
OSExec.c File Reference

Classes

struct  AppLoaderStruct
 

Functions

size_t wcslen (const wchar_t *)
 
volatile u32 BOOT_REGION_START AT_ADDRESS (0x812FDFF0)
 
volatile u32 BOOT_REGION_END AT_ADDRESS (0x812FDFEC)
 
volatile u8 g_unk_800030E2 AT_ADDRESS (0x800030E2)
 
static int PackArgs (void *addr, s32 argc, char **argv)
 
static BOOL Utf16ToArg (char *dstArg, u16 *srcName)
 
BOOL PackInstallerArgs (void *addr, s32 argc, char *argv[])
 
static asm void Run (__REGISTER void *entryPoint)
 
static void StartDol (const OSExecParams *params, void *entry)
 
static void ReadDisc (void *addr, s32 length, s32 offset)
 
static void Callback (s32, DVDCommandBlock *)
 
static int IsStreamEnabled ()
 
void __OSGetExecParams (OSExecParams *params)
 
void __OSSetExecParams (const OSExecParams *params, OSExecParams *addr)
 
static void StopStreaming ()
 
static int GetApploaderPosition (void)
 
static AppLoaderStructLoadApploader ()
 
static void * LoadDol (const OSExecParams *params, AppLoaderCallback getInterface)
 
static BOOL IsNewApploader (AppLoaderStruct *header)
 
static void callback (u32 param_0)
 
void CheckDVDLowIntType (int param_0)
 
void __OSLaunchNextFirmware (void)
 
void __OSLaunchMenu (void)
 
void __OSBootDolSimple (u32 doloffset, u32 restartCode, void *regionStart, void *regionEnd, BOOL argsUseDefault, s32 argc, char **argv)
 
void __OSBootDol (u32 doloffset, u32 restartCode, const char **argv)
 
void OSLaunchDisk (void)
 
void OSLaunchDiskl (void)
 
static void ExecCommon (const char *dolfile, const char **argv)
 
void OSExecv (const char *dolfile, const char **argv)
 
void OSExecl (const char *dolfile, const char *arg0,...)
 
void OSLaunchPartition (void)
 
void OSLaunchPartitionl (void)
 

Variables

DVDDiskID id
 
static int Prepared
 
BOOL __OSInReboot
 
u32 __OSNextPartitionType = 0
 
static u32 DVDLowIntType
 

Function Documentation

◆ __OSBootDol()

void __OSBootDol ( u32 doloffset,
u32 restartCode,
const char ** argv )

◆ __OSBootDolSimple()

void __OSBootDolSimple ( u32 doloffset,
u32 restartCode,
void * regionStart,
void * regionEnd,
BOOL argsUseDefault,
s32 argc,
char ** argv )

◆ __OSGetExecParams()

void __OSGetExecParams ( OSExecParams * params)

◆ __OSLaunchMenu()

void __OSLaunchMenu ( void )

◆ __OSLaunchNextFirmware()

void __OSLaunchNextFirmware ( void )

◆ __OSSetExecParams()

void __OSSetExecParams ( const OSExecParams * params,
OSExecParams * addr )

◆ AT_ADDRESS() [1/3]

volatile u8 g_unk_800030E2 AT_ADDRESS ( 0x800030E2 )
extern

◆ AT_ADDRESS() [2/3]

volatile u32 BOOT_REGION_END AT_ADDRESS ( 0x812FDFEC )
extern

◆ AT_ADDRESS() [3/3]

volatile u32 BOOT_REGION_START AT_ADDRESS ( 0x812FDFF0 )
extern

◆ Callback()

static void Callback ( s32 ,
DVDCommandBlock *  )
static

◆ callback()

static void callback ( u32 param_0)
static

◆ CheckDVDLowIntType()

void CheckDVDLowIntType ( int param_0)

◆ ExecCommon()

static void ExecCommon ( const char * dolfile,
const char ** argv )
static

◆ GetApploaderPosition()

static int GetApploaderPosition ( void )
static

◆ IsNewApploader()

static BOOL IsNewApploader ( AppLoaderStruct * header)
static

◆ IsStreamEnabled()

static int IsStreamEnabled ( )
static

◆ LoadApploader()

static AppLoaderStruct * LoadApploader ( )
static

◆ LoadDol()

static void * LoadDol ( const OSExecParams * params,
AppLoaderCallback getInterface )
static

◆ OSExecl()

void OSExecl ( const char * dolfile,
const char * arg0,
... )

◆ OSExecv()

void OSExecv ( const char * dolfile,
const char ** argv )

◆ OSLaunchDisk()

void OSLaunchDisk ( void )

◆ OSLaunchDiskl()

void OSLaunchDiskl ( void )

◆ OSLaunchPartition()

void OSLaunchPartition ( void )

◆ OSLaunchPartitionl()

void OSLaunchPartitionl ( void )

◆ PackArgs()

static int PackArgs ( void * addr,
s32 argc,
char ** argv )
static

◆ PackInstallerArgs()

BOOL PackInstallerArgs ( void * addr,
s32 argc,
char * argv[] )

◆ ReadDisc()

static void ReadDisc ( void * addr,
s32 length,
s32 offset )
static

◆ Run()

static asm void Run ( __REGISTER void * entryPoint)
static

◆ StartDol()

static void StartDol ( const OSExecParams * params,
void * entry )
static

◆ StopStreaming()

static void StopStreaming ( )
static

◆ Utf16ToArg()

static BOOL Utf16ToArg ( char * dstArg,
u16 * srcName )
static

◆ wcslen()

size_t wcslen ( const wchar_t * )
extern

Variable Documentation

◆ __OSInReboot

BOOL __OSInReboot

◆ __OSNextPartitionType

u32 __OSNextPartitionType = 0

◆ DVDLowIntType

u32 DVDLowIntType
static

◆ id

◆ Prepared

int Prepared
static