SSBM Decomp
Loading...
Searching...
No Matches
dvdfs.c File Reference
#include <platform.h>
#include <dolphin/dvd/forward.h>
#include <dolphin/dvd/dvd.h>
#include <dolphin/dvd/dvdfs.h>
#include <dolphin/os.h>
#include <dolphin/os/OSBootInfo.h>
#include <dolphin/os/OSThread.h>
#include <MSL/ctype.h>

Macros

#define entryIsDir(i)    (((FstStart[i].isDirAndStringOff & 0xff000000) == 0) ? false : true)
 
#define stringOff(i)   (FstStart[i].isDirAndStringOff & ~0xff000000)
 
#define parentDir(i)   (FstStart[i].parentOrPosition)
 
#define nextDir(i)   (FstStart[i].nextEntryOrLength)
 
#define filePosition(i)   (FstStart[i].parentOrPosition)
 
#define fileLength(i)   (FstStart[i].nextEntryOrLength)
 

Functions

static void cbForReadAsync (s32 result, DVDCommandBlock *block)
 
void __DVDFSInit (void)
 
static bool isSame (const char *path, const char *string)
 
s32 DVDConvertPathToEntrynum (const char *pathPtr)
 
bool DVDFastOpen (s32 entrynum, DVDFileInfo *fileInfo)
 
bool DVDClose (DVDFileInfo *fileInfo)
 
bool DVDReadAsyncPrio (DVDFileInfo *fileInfo, void *addr, s32 length, s32 offset, DVDCallback callback, s32 prio)
 

Variables

static OSBootInfoBootInfo
 
static FSTEntryFstStart
 
static char * FstStringStart
 
static u32 MaxEntryNum
 
static u32 currentDirectory = 0
 
OSThreadQueue __DVDThreadQueue
 
u32 __DVDLongFileNameFlag = 0
 

Macro Definition Documentation

◆ entryIsDir

#define entryIsDir (   i)     (((FstStart[i].isDirAndStringOff & 0xff000000) == 0) ? false : true)

◆ stringOff

#define stringOff (   i)    (FstStart[i].isDirAndStringOff & ~0xff000000)

◆ parentDir

#define parentDir (   i)    (FstStart[i].parentOrPosition)

◆ nextDir

#define nextDir (   i)    (FstStart[i].nextEntryOrLength)

◆ filePosition

#define filePosition (   i)    (FstStart[i].parentOrPosition)

◆ fileLength

#define fileLength (   i)    (FstStart[i].nextEntryOrLength)

Function Documentation

◆ cbForReadAsync()

static void cbForReadAsync ( s32  result,
DVDCommandBlock block 
)
static

◆ __DVDFSInit()

void __DVDFSInit ( void  )

◆ isSame()

static bool isSame ( const char *  path,
const char *  string 
)
static

◆ DVDConvertPathToEntrynum()

s32 DVDConvertPathToEntrynum ( const char *  pathPtr)

◆ DVDFastOpen()

bool DVDFastOpen ( s32  entrynum,
DVDFileInfo fileInfo 
)

◆ DVDClose()

bool DVDClose ( DVDFileInfo fileInfo)

◆ DVDReadAsyncPrio()

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

Variable Documentation

◆ BootInfo

OSBootInfo* BootInfo
static

◆ FstStart

FSTEntry* FstStart
static

◆ FstStringStart

char* FstStringStart
static

◆ MaxEntryNum

u32 MaxEntryNum
static

◆ currentDirectory

u32 currentDirectory = 0
static

◆ __DVDThreadQueue

OSThreadQueue __DVDThreadQueue

◆ __DVDLongFileNameFlag

u32 __DVDLongFileNameFlag = 0