204#define JKRARCHIVE_ATTR_COMPRESSION 0x04
205#define JKRARCHIVE_ATTR_YAY0 0x80
u16 read_big_endian_u16(void *ptr)
Definition JKRArchive.h:46
u32 sCurrentDirID__10JKRArchive
bool JKRRemoveResource(void *resource, JKRFileLoader *fileLoader)
Definition JKRArchive.h:237
void * JKRGetTypeResource(u32 tag, const char *name, JKRArchive *arc)
Definition JKRArchive.h:233
u32 read_big_endian_u32(void *ptr)
Definition JKRArchive.h:41
void * JKRGetResource(u32 node, const char *path, JKRArchive *archive)
Definition JKRArchive.h:229
void JKRUnmountArchive(JKRArchive *arc)
Definition JKRArchive.h:241
void JKRReadIdxResource(void *param_1, u32 param_2, u32 param_3, JKRArchive *param_4)
Definition JKRArchive.h:245
JKRCompression JKRConvertAttrToCompressionType(u32 attr)
Definition JKRArchive.h:225
int JKRCompression
Definition JKRCompression.h:4
const JKRCompression COMPRESSION_YAZ0
Definition JKRCompression.h:7
const JKRCompression COMPRESSION_YAY0
Definition JKRCompression.h:6
const JKRCompression COMPRESSION_NONE
Definition JKRCompression.h:5
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JKRArchive.h:110
CArcName()
Definition JKRArchive.h:112
u16 mLength
Definition JKRArchive.h:125
CArcName(char const *data)
Definition JKRArchive.h:113
char mData[256]
Definition JKRArchive.h:126
CArcName(char const **data, char endChar)
Definition JKRArchive.h:114
u16 getHash() const
Definition JKRArchive.h:119
void store(char const *data)
Definition JKRArchivePri.cpp:187
u16 mHash
Definition JKRArchive.h:124
const char * getString() const
Definition JKRArchive.h:121
Definition JKRArchive.h:57
SDIFileEntry * findFsResource(const char *, u32) const
Definition JKRArchivePri.cpp:102
bool isFileEntry(u32 param_0)
Definition JKRArchive.h:174
u32 countFile() const
Definition JKRArchive.h:171
virtual JKRFileFinder * getFirstFile(const char *) const
Definition JKRArchivePub.cpp:359
virtual u32 getExpandSize(SDIFileEntry *) const
Definition JKRArchivePri.cpp:237
virtual bool becomeCurrent(const char *)
Definition JKRArchivePub.cpp:103
SDIDirEntry * mNodes
Definition JKRArchive.h:186
s32 countDirectory() const
Definition JKRArchive.h:172
JKRCompression mCompression
Definition JKRArchive.h:193
SDIFileEntry * findTypeResource(u32, const char *) const
Definition JKRArchivePri.cpp:82
static JKRArchive * mount(const char *, EMountMode, JKRHeap *, EMountDirection)
Definition JKRArchivePub.cpp:34
u32 countResource(void) const
Definition JKRArchivePub.cpp:328
static JKRArchive * check_mount_already(s32, JKRHeap *)
Definition JKRArchivePub.cpp:12
virtual u32 getResSize(const void *) const
Definition JKRArchivePub.cpp:318
u8 field_0x3d[3]
Definition JKRArchive.h:183
SDIFileEntry * findPtrResource(const void *) const
Definition JKRArchivePri.cpp:153
static u32 getCurrentDirID()
Definition JKRArchive.h:218
virtual ~JKRArchive()
Definition JKRArchivePri.cpp:31
u32 getFileAttribute(u32) const
Definition JKRArchivePub.cpp:382
static JKRCompression convertAttrToCompressionType(u32 attr)
Definition JKRArchive.h:203
void * getIdxResource(u32)
Definition JKRArchivePub.cpp:193
void * getResource(u16)
Definition JKRArchivePub.cpp:204
static void * getGlbResource(u32, const char *, JKRArchive *)
Definition JKRArchivePub.cpp:139
static void setCurrentDirID(u32 dirID)
Definition JKRArchive.h:219
virtual bool detachResource(void *)
Definition JKRArchivePub.cpp:307
virtual void * fetchResource(void *, u32, SDIFileEntry *, u32 *)=0
u8 mMountMode
Definition JKRArchive.h:182
virtual bool removeResource(void *)
Definition JKRArchivePub.cpp:295
char * mStringTable
Definition JKRArchive.h:189
bool getDirEntry(SDirEntry *, u32) const
Definition JKRArchivePub.cpp:126
static u32 sCurrentDirID
Definition JKRArchive.h:222
u32 readResource(void *, u32, u16)
Definition JKRArchivePub.cpp:268
EMountDirection mMountDirection
Definition JKRArchive.h:194
JKRHeap * mHeap
Definition JKRArchive.h:181
SDIFileEntry * findIdxResource(u32) const
Definition JKRArchivePri.cpp:128
s32 * mExpandedSize
Definition JKRArchive.h:188
virtual u32 getExpandedResSize(const void *res) const
Definition JKRArchive.h:165
SDIFileEntry * findNameResource(const char *) const
Definition JKRArchivePri.cpp:138
SDIDirEntry * findDirectory(const char *, u32) const
Definition JKRArchivePri.cpp:60
virtual void * fetchResource(SDIFileEntry *, u32 *)=0
u8 getMountMode() const
Definition JKRArchive.h:173
SDIFileEntry * mFiles
Definition JKRArchive.h:187
s32 mEntryNum
Definition JKRArchive.h:184
SDIFileEntry * findIdResource(u16) const
Definition JKRArchivePri.cpp:165
EMountDirection
Definition JKRArchive.h:104
@ MOUNT_DIRECTION_TAIL
Definition JKRArchive.h:107
@ UNKNOWN_MOUNT_DIRECTION
Definition JKRArchive.h:105
@ MOUNT_DIRECTION_HEAD
Definition JKRArchive.h:106
bool isSameName(CArcName &, u32, u16) const
Definition JKRArchivePri.cpp:35
virtual void removeResourceAll(void)
Definition JKRArchivePub.cpp:282
u32 readIdxResource(void *, u32, u32)
Definition JKRArchivePub.cpp:254
virtual void setExpandSize(SDIFileEntry *, u32)
Definition JKRArchivePri.cpp:227
SArcDataInfo * mArcInfoBlock
Definition JKRArchive.h:185
SDIDirEntry * findResType(u32) const
Definition JKRArchivePri.cpp:43
u32 field_0x58
Definition JKRArchive.h:192
EMountMode
Definition JKRArchive.h:96
@ MOUNT_DVD
Definition JKRArchive.h:100
@ UNKNOWN_MOUNT_MODE
Definition JKRArchive.h:97
@ MOUNT_COMP
Definition JKRArchive.h:101
@ MOUNT_ARAM
Definition JKRArchive.h:99
@ MOUNT_MEM
Definition JKRArchive.h:98
Definition JKRFileFinder.h:10
Definition JKRFileLoader.h:12
virtual bool removeResource(void *)=0
static const Attr & attr()
Definition d_a_obj_ladder.cpp:135
static u16 data[4]
Definition d_vibration.cpp:114
Definition JKRArchive.h:66
u16 num_entries
Definition JKRArchive.h:70
u32 first_file_index
Definition JKRArchive.h:71
u32 type
Definition JKRArchive.h:67
u32 name_offset
Definition JKRArchive.h:68
u16 field_0x8
Definition JKRArchive.h:69
Definition JKRArchive.h:74
u8 getCompressFlag() const
Definition JKRArchive.h:91
bool isDirectory() const
Definition JKRArchive.h:87
u16 file_id
Definition JKRArchive.h:75
u32 getFlags() const
Definition JKRArchive.h:84
bool isUnknownFlag1() const
Definition JKRArchive.h:88
u16 getNameHash() const
Definition JKRArchive.h:83
bool isCompressed() const
Definition JKRArchive.h:89
u32 getAttr() const
Definition JKRArchive.h:85
u32 type_flags_and_name_offset
Definition JKRArchive.h:77
u16 name_hash
Definition JKRArchive.h:76
u32 data_size
Definition JKRArchive.h:79
u32 getSize() const
Definition JKRArchive.h:93
bool isYAZ0Compressed() const
Definition JKRArchive.h:92
void * data
Definition JKRArchive.h:80
u32 data_offset
Definition JKRArchive.h:78
u16 getFileID() const
Definition JKRArchive.h:86
u32 getNameOffset() const
Definition JKRArchive.h:82
Definition JKRArchive.h:59
u8 flags
Definition JKRArchive.h:60
u16 id
Definition JKRArchive.h:62
u8 padding
Definition JKRArchive.h:61
const char * name
Definition JKRArchive.h:63
Definition JKRArchive.h:29
u32 num_file_entries
Definition JKRArchive.h:32
u32 string_table_offset
Definition JKRArchive.h:35
u32 string_table_length
Definition JKRArchive.h:34
u32 node_offset
Definition JKRArchive.h:31
u32 file_entry_offset
Definition JKRArchive.h:33
u16 next_free_file_id
Definition JKRArchive.h:36
bool sync_file_ids_and_indices
Definition JKRArchive.h:37
u32 num_nodes
Definition JKRArchive.h:30
u8 field_1b[5]
Definition JKRArchive.h:38
unsigned long u32
Definition types.h:10
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8