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

#include <JKRAramArchive.h>

+ Inheritance diagram for JKRAramArchive:
+ Collaboration diagram for JKRAramArchive:

Public Member Functions

 JKRAramArchive (s32, JKRArchive::EMountDirection)
 
virtual ~JKRAramArchive ()
 
bool open (s32)
 
u32 getAramAddress_Entry (SDIFileEntry *)
 
u32 getAramAddress (char const *)
 
u32 getExpandedResSize (const void *) const
 
voidfetchResource (SDIFileEntry *, u32 *)
 
voidfetchResource (void *, u32, SDIFileEntry *, u32 *)
 
- Public Member Functions inherited from JKRArchive
virtual ~JKRArchive ()
 
bool getDirEntry (SDirEntry *, u32) const
 
voidgetIdxResource (u32)
 
voidgetResource (u16)
 
u32 readIdxResource (void *, u32, u32)
 
u32 readResource (void *, u32, u16)
 
u32 countResource (void) const
 
u32 getFileAttribute (u32) const
 
SDIFileEntryfindNameResource (const char *) const
 
bool isSameName (CArcName &, u32, u16) const
 
SDIDirEntryfindResType (u32) const
 
SDIDirEntryfindDirectory (const char *, u32) const
 
SDIFileEntryfindTypeResource (u32, const char *) const
 
SDIFileEntryfindFsResource (const char *, u32) const
 
SDIFileEntryfindIdxResource (u32) const
 
SDIFileEntryfindPtrResource (const void *) const
 
SDIFileEntryfindIdResource (u16) const
 
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 void setExpandSize (SDIFileEntry *, u32)
 
virtual u32 getExpandSize (SDIFileEntry *) const
 
u32 countFile () const
 
s32 countDirectory () const
 
u8 getMountMode () const
 
bool isFileEntry (u32 param_0)
 
- 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 u32 fetchResource_subroutine (u32, u32, u8 *, u32, int)
 
static u32 fetchResource_subroutine (u32, u32, JKRHeap *, int, u8 **)
 
- Static Public Member Functions inherited from JKRArchive
static JKRArchivecheck_mount_already (s32, JKRHeap *)
 
static JKRArchivemount (const char *, EMountMode, JKRHeap *, EMountDirection)
 
static JKRArchivemount (void *, JKRHeap *, EMountDirection)
 
static JKRArchivemount (s32, EMountMode, JKRHeap *, EMountDirection)
 
static voidgetGlbResource (u32, const char *, JKRArchive *)
 
static JKRCompression convertAttrToCompressionType (u32 attr)
 
static u32 getCurrentDirID ()
 
static void setCurrentDirID (u32 dirID)
 
- 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 ()
 

Private Attributes

JKRAramBlockmBlock
 
JKRDvdFilemDvdFile
 

Additional Inherited Members

- Public Types inherited from JKRArchive
enum  EMountMode {
  UNKNOWN_MOUNT_MODE = 0 , MOUNT_MEM = 1 , MOUNT_ARAM = 2 , MOUNT_DVD = 3 ,
  MOUNT_COMP = 4
}
 
enum  EMountDirection { UNKNOWN_MOUNT_DIRECTION = 0 , MOUNT_DIRECTION_HEAD = 1 , MOUNT_DIRECTION_TAIL = 2 }
 
- Public Attributes inherited from JKRArchive
JKRHeapmHeap
 
u8 mMountMode
 
u8 field_0x3d [3]
 
s32 mEntryNum
 
SArcDataInfomArcInfoBlock
 
SDIDirEntrymNodes
 
SDIFileEntrymFiles
 
s32mExpandedSize
 
charmStringTable
 
- Public Attributes inherited from JKRDisposer
JKRHeapmHeap
 
JSULink< JKRDisposermLink
 
- Static Public Attributes inherited from JKRFileLoader
static JKRFileLoadersCurrentVolume
 
static JSUList< JKRFileLoadersVolumeList
 
- Protected Member Functions inherited from JKRArchive
 JKRArchive ()
 
 JKRArchive (s32, EMountMode)
 
- Protected Attributes inherited from JKRArchive
u32 field_0x58
 
JKRCompression mCompression
 
EMountDirection mMountDirection
 
- Protected Attributes inherited from JKRFileLoader
JSULink< JKRFileLoadermFileLoaderLink
 
const charmVolumeName
 
u32 mVolumeType
 
bool mIsMounted
 
u8 field_0x31 [3]
 
u32 mMountCount
 

Constructor & Destructor Documentation

◆ JKRAramArchive()

JKRAramArchive::JKRAramArchive ( s32  entryNumber,
JKRArchive::EMountDirection  mountDirection 
)

◆ ~JKRAramArchive()

JKRAramArchive::~JKRAramArchive ( )
virtual

Member Function Documentation

◆ fetchResource() [1/2]

void * JKRAramArchive::fetchResource ( SDIFileEntry pEntry,
u32 pOutSize 
)
virtual

Implements JKRArchive.

◆ fetchResource() [2/2]

void * JKRAramArchive::fetchResource ( void buffer,
u32  bufferSize,
SDIFileEntry pEntry,
u32 resourceSize 
)
virtual

Implements JKRArchive.

◆ fetchResource_subroutine() [1/2]

u32 JKRAramArchive::fetchResource_subroutine ( u32  entryNum,
u32  length,
JKRHeap pHeap,
int  compression,
u8 **  out 
)
static

◆ fetchResource_subroutine() [2/2]

u32 JKRAramArchive::fetchResource_subroutine ( u32  srcAram,
u32  srcLength,
u8 dst,
u32  dstLength,
int  compression 
)
static

◆ getAramAddress()

u32 JKRAramArchive::getAramAddress ( char const name)

◆ getAramAddress_Entry()

u32 JKRAramArchive::getAramAddress_Entry ( SDIFileEntry pEntry)

◆ getExpandedResSize()

u32 JKRAramArchive::getExpandedResSize ( const void ptr) const
virtual

Reimplemented from JKRArchive.

◆ open()

bool JKRAramArchive::open ( s32  entryNum)

Member Data Documentation

◆ mBlock

JKRAramBlock* JKRAramArchive::mBlock
private

◆ mDvdFile

JKRDvdFile* JKRAramArchive::mDvdFile
private

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