Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JKRFileCache Class Reference

#include <JKRFileCache.h>

+ Inheritance diagram for JKRFileCache:
+ Collaboration diagram for JKRFileCache:

Classes

class  CCacheBlock
 

Public Member Functions

virtual bool becomeCurrent (const char *)
 
virtual voidgetResource (const char *)
 
virtual voidgetResource (u32, const char *)
 
virtual u32 readResource (void *, u32, const char *)
 
virtual u32 readResource (void *, u32, u32, const char *)
 
virtual void removeResourceAll (void)
 
virtual bool removeResource (void *)
 
virtual bool detachResource (void *)
 
virtual u32 getResSize (const void *) const
 
virtual u32 countFile (const char *) const
 
virtual JKRFileFindergetFirstFile (const char *) const
 
virtual voidgetFsResource (const char *)
 
virtual voidgetNameResource (u32, const char *)
 
virtual u32 readFsResource (void *, u32, const char *)
 
virtual u32 readNameResource (void *, u32, u32, const char *)
 
- Public Member Functions inherited from JKRFileLoader
 JKRFileLoader (void)
 
virtual ~JKRFileLoader ()
 
bool isMounted () const
 
u32 getVolumeType () const
 
virtual void unmount (void)
 
- Public Member Functions inherited from JKRDisposer
 JKRDisposer ()
 
virtual ~JKRDisposer ()
 

Static Public Member Functions

static JKRFileCachemount (const char *, JKRHeap *, const char *)
 
- Static Public Member Functions inherited from JKRFileLoader
static voidgetGlbResource (const char *)
 
static voidgetGlbResource (const char *, JKRFileLoader *)
 
static bool removeResource (void *, JKRFileLoader *)
 
static bool detachResource (void *, JKRFileLoader *)
 
static JKRFileLoaderfindVolume (const char **)
 
static const charfetchVolumeName (char *, s32, const char *)
 
static JKRFileLoadergetCurrentVolume ()
 
static void setCurrentVolume (JKRFileLoader *fileLoader)
 
static JSUList< JKRFileLoader > & getVolumeList ()
 

Protected Member Functions

 JKRFileCache (const char *, const char *)
 
virtual ~JKRFileCache ()
 
CCacheBlockfindCacheBlock (const void *) const
 
CCacheBlockfindCacheBlock (u32) const
 
bool findFile (char *, const char *) const
 
chargetDvdPathName (const char *) const
 
void convStrLower (char *) const
 

Private Attributes

JKRHeapmParentHeap
 
JSUList< CCacheBlockmCacheBlockList
 
charmRootPath
 
charmCurrentPath
 
charmVolumePath
 

Additional Inherited Members

- Public Attributes inherited from JKRDisposer
JKRHeapmHeap
 
JSULink< JKRDisposermLink
 
- Static Public Attributes inherited from JKRFileLoader
static JKRFileLoadersCurrentVolume
 
static JSUList< JKRFileLoadersVolumeList
 
- Protected Attributes inherited from JKRFileLoader
JSULink< JKRFileLoadermFileLoaderLink
 
const charmVolumeName
 
u32 mVolumeType
 
bool mIsMounted
 
u8 field_0x31 [3]
 
u32 mMountCount
 

Constructor & Destructor Documentation

◆ JKRFileCache()

JKRFileCache::JKRFileCache ( const char path,
const char volume 
)
protected

◆ ~JKRFileCache()

JKRFileCache::~JKRFileCache ( )
protectedvirtual

Member Function Documentation

◆ becomeCurrent()

bool JKRFileCache::becomeCurrent ( const char path)
virtual

Implements JKRFileLoader.

◆ convStrLower()

void JKRFileCache::convStrLower ( char buffer) const
protected

◆ countFile()

u32 JKRFileCache::countFile ( const char path) const
virtual

Implements JKRFileLoader.

◆ detachResource()

bool JKRFileCache::detachResource ( void resource)
virtual

Implements JKRFileLoader.

◆ findCacheBlock() [1/2]

JKRFileCache::CCacheBlock * JKRFileCache::findCacheBlock ( const void resource) const
protected

◆ findCacheBlock() [2/2]

JKRFileCache::CCacheBlock * JKRFileCache::findCacheBlock ( u32  fileID) const
protected

◆ findFile()

bool JKRFileCache::findFile ( char path,
const char fileName 
) const
protected

◆ getDvdPathName()

char * JKRFileCache::getDvdPathName ( const char path) const
protected

◆ getFirstFile()

JKRFileFinder * JKRFileCache::getFirstFile ( const char path) const
virtual

Implements JKRFileLoader.

◆ getFsResource()

void * JKRFileCache::getFsResource ( const char path)
virtual

◆ getNameResource()

void * JKRFileCache::getNameResource ( u32  type,
const char path 
)
virtual

◆ getResource() [1/2]

void * JKRFileCache::getResource ( const char path)
virtual

Implements JKRFileLoader.

◆ getResource() [2/2]

void * JKRFileCache::getResource ( u32  ,
const char path 
)
virtual

Implements JKRFileLoader.

◆ getResSize()

u32 JKRFileCache::getResSize ( const void resource) const
virtual

Implements JKRFileLoader.

◆ mount()

JKRFileCache * JKRFileCache::mount ( const char path,
JKRHeap heap,
const char param_3 
)
static

◆ readFsResource()

u32 JKRFileCache::readFsResource ( void dst,
u32  dstLength,
const char path 
)
virtual

◆ readNameResource()

u32 JKRFileCache::readNameResource ( void dst,
u32  dstLength,
u32  type,
const char path 
)
virtual

◆ readResource() [1/2]

u32 JKRFileCache::readResource ( void dst,
u32  dstLength,
const char path 
)
virtual

Implements JKRFileLoader.

◆ readResource() [2/2]

u32 JKRFileCache::readResource ( void dst,
u32  dstLength,
u32  ,
const char path 
)
virtual

Implements JKRFileLoader.

◆ removeResource()

bool JKRFileCache::removeResource ( void resource)
virtual

Implements JKRFileLoader.

◆ removeResourceAll()

void JKRFileCache::removeResourceAll ( void  )
virtual

Implements JKRFileLoader.

Member Data Documentation

◆ mCacheBlockList

JSUList<CCacheBlock> JKRFileCache::mCacheBlockList
private

◆ mCurrentPath

char* JKRFileCache::mCurrentPath
private

◆ mParentHeap

JKRHeap* JKRFileCache::mParentHeap
private

◆ mRootPath

char* JKRFileCache::mRootPath
private

◆ mVolumePath

char* JKRFileCache::mVolumePath
private

The documentation for this class was generated from the following files: