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

Classes

struct  FSTEntry
 

Typedefs

typedef struct FSTEntry FSTEntry
 

Functions

void __DVDFSInit ()
 
int DVDConvertPathToEntrynum (const char *path)
 
int DVDFastOpen (long entryNum, DVDFileInfo *info)
 
BOOL DVDOpen (const char *filename, DVDFileInfo *fileinfo)
 
BOOL DVDClose (DVDFileInfo *fileinfo)
 
static u32 entryToPath (u32 entry, char *path, u32 maxlen)
 
static BOOL DVDConvertEntrynumToPath (s32 entrynum, char *path, u32 maxlen)
 
static BOOL DVDGetCurrentDir (char *path, u32 maxlen)
 
BOOL DVDChangeDir (const char *dirname)
 
BOOL DVDReadAsyncPrio (DVDFileInfo *fileInfo, void *addr, s32 length, s32 offset, DVDCallback callback, s32 prio)
 
static void cbForReadAsync ()
 
int DVDReadPrio (DVDFileInfo *fileInfo, void *addr, s32 length, s32 offset, s32 prio)
 
static void cbForReadSync ()
 
BOOL DVDOpenDir (const char *, DVDDirectory *dir)
 
BOOL DVDReadDir (DVDDirectory *dir, DVDDirectoryEntry *entry)
 
BOOL DVDCloseDir ()
 
static BOOL isSame (const char *path, const char *string)
 
int DVDFastOpen (s32 entrynum, DVDFileInfo *fileInfo)
 
static u32 myStrncpy (char *dest, char *src, u32 maxlen)
 
static void cbForReadAsync (s32 result, DVDCommandBlock *block)
 
static void cbForReadSync (s32 result, DVDCommandBlock *block)
 

Variables

static OSBootInfoBootInfo
 
static FSTEntryFstStart
 
static charFstStringStart
 
static unsigned int MaxEntryNum
 
static u32 currentDirectory
 
OSThreadQueue __DVDThreadQueue
 
u32 __DVDLongFileNameFlag
 

Typedef Documentation

◆ FSTEntry

Function Documentation

◆ __DVDFSInit()

void __DVDFSInit ( )

◆ cbForReadAsync() [1/2]

static void cbForReadAsync ( )
static

◆ cbForReadAsync() [2/2]

static void cbForReadAsync ( s32  result,
DVDCommandBlock block 
)
static

◆ cbForReadSync() [1/2]

static void cbForReadSync ( )
static

◆ cbForReadSync() [2/2]

static void cbForReadSync ( s32  result,
DVDCommandBlock block 
)
static

◆ DVDChangeDir()

BOOL DVDChangeDir ( const char dirname)

◆ DVDClose()

BOOL DVDClose ( DVDFileInfo fileinfo)

◆ DVDCloseDir()

BOOL DVDCloseDir ( )

◆ DVDConvertEntrynumToPath()

static BOOL DVDConvertEntrynumToPath ( s32  entrynum,
char path,
u32  maxlen 
)
static

◆ DVDConvertPathToEntrynum()

int DVDConvertPathToEntrynum ( const char path)

◆ DVDFastOpen() [1/2]

int DVDFastOpen ( long  entryNum,
DVDFileInfo info 
)

◆ DVDFastOpen() [2/2]

int DVDFastOpen ( s32  entrynum,
DVDFileInfo fileInfo 
)

◆ DVDGetCurrentDir()

BOOL DVDGetCurrentDir ( char path,
u32  maxlen 
)
static

◆ DVDOpen()

BOOL DVDOpen ( const char filename,
DVDFileInfo fileinfo 
)

◆ DVDOpenDir()

BOOL DVDOpenDir ( const char dirName,
DVDDirectory dir 
)

◆ DVDReadAsyncPrio()

BOOL DVDReadAsyncPrio ( DVDFileInfo fileInfo,
void addr,
s32  length,
s32  offset,
DVDCallback  callback,
s32  prio 
)

◆ DVDReadDir()

BOOL DVDReadDir ( DVDDirectory dir,
DVDDirectoryEntry entry 
)

◆ DVDReadPrio()

int DVDReadPrio ( DVDFileInfo fileInfo,
void addr,
s32  length,
s32  offset,
s32  prio 
)

◆ entryToPath()

static u32 entryToPath ( u32  entry,
char path,
u32  maxlen 
)
static

◆ isSame()

static BOOL isSame ( const char path,
const char string 
)
static

◆ myStrncpy()

static u32 myStrncpy ( char dest,
char src,
u32  maxlen 
)
static

Variable Documentation

◆ __DVDLongFileNameFlag

u32 __DVDLongFileNameFlag

◆ __DVDThreadQueue

OSThreadQueue __DVDThreadQueue

◆ BootInfo

OSBootInfo* BootInfo
static

◆ currentDirectory

u32 currentDirectory
static

◆ FstStart

FSTEntry* FstStart
static

◆ FstStringStart

char* FstStringStart
static

◆ MaxEntryNum

unsigned int MaxEntryNum
static