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

#include <JKRMemArchive.h>

+ Inheritance diagram for JKRMemArchive:
+ Collaboration diagram for JKRMemArchive:

Public Member Functions

 JKRMemArchive (s32, JKRArchive::EMountDirection)
 
 JKRMemArchive (void *, u32, JKRMemBreakFlag)
 
virtual ~JKRMemArchive ()
 
bool open (s32, JKRArchive::EMountDirection)
 
bool open (void *, u32, JKRMemBreakFlag)
 
void removeResourceAll (void)
 
bool removeResource (void *)
 
u32 getExpandedResSize (const void *) const
 
voidfetchResource (SDIFileEntry *, u32 *)
 
voidfetchResource (void *, u32, SDIFileEntry *, u32 *)
 
SArcHeadergetArcHeader ()
 
- 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 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 (u8 *, u32, u8 *, u32, JKRCompression)
 
- 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

SArcHeadermArcHeader
 
u8mArchiveData
 
bool mIsOpen
 
u8 field_0x6d [3]
 

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

◆ JKRMemArchive() [1/2]

JKRMemArchive::JKRMemArchive ( s32  entryNum,
JKRArchive::EMountDirection  mountDirection 
)

◆ JKRMemArchive() [2/2]

JKRMemArchive::JKRMemArchive ( void buffer,
u32  bufferSize,
JKRMemBreakFlag  param_3 
)

◆ ~JKRMemArchive()

JKRMemArchive::~JKRMemArchive ( )
virtual

Member Function Documentation

◆ fetchResource() [1/2]

void * JKRMemArchive::fetchResource ( SDIFileEntry fileEntry,
u32 resourceSize 
)
virtual

Implements JKRArchive.

◆ fetchResource() [2/2]

void * JKRMemArchive::fetchResource ( void buffer,
u32  bufferSize,
SDIFileEntry fileEntry,
u32 resourceSize 
)
virtual

Implements JKRArchive.

◆ fetchResource_subroutine()

u32 JKRMemArchive::fetchResource_subroutine ( u8 src,
u32  srcLength,
u8 dst,
u32  dstLength,
JKRCompression  compression 
)
static

◆ getArcHeader()

SArcHeader * JKRMemArchive::getArcHeader ( )
inline

◆ getExpandedResSize()

u32 JKRMemArchive::getExpandedResSize ( const void resource) const
virtual

Reimplemented from JKRArchive.

◆ open() [1/2]

bool JKRMemArchive::open ( s32  entryNum,
JKRArchive::EMountDirection  mountDirection 
)

◆ open() [2/2]

bool JKRMemArchive::open ( void buffer,
u32  bufferSize,
JKRMemBreakFlag  flag 
)

◆ removeResource()

bool JKRMemArchive::removeResource ( void resource)
virtual

Reimplemented from JKRArchive.

◆ removeResourceAll()

void JKRMemArchive::removeResourceAll ( void  )
virtual

Reimplemented from JKRArchive.

Member Data Documentation

◆ field_0x6d

u8 JKRMemArchive::field_0x6d[3]
private

◆ mArcHeader

SArcHeader* JKRMemArchive::mArcHeader
private

◆ mArchiveData

u8* JKRMemArchive::mArchiveData
private

◆ mIsOpen

bool JKRMemArchive::mIsOpen
private

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