summaryrefslogtreecommitdiff
path: root/include/JSystem/JKernel
diff options
context:
space:
mode:
authorJcw87 <Jcw87@users.noreply.github.com>2022-05-21 01:26:15 -0700
committerGitHub <noreply@github.com>2022-05-21 10:26:15 +0200
commit9bcbccbeb5966896e10b9f29cc4c69bc49abe20d (patch)
tree2f218437ffd449f0bf7d8368cc17e3c706d1d8df /include/JSystem/JKernel
parent0e299bb7a12826301a88af5cf7736c61723166ff (diff)
JKRArchive: fix SDirEntry confusion (#196)
Diffstat (limited to 'include/JSystem/JKernel')
-rw-r--r--include/JSystem/JKernel/JKRArchive.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/include/JSystem/JKernel/JKRArchive.h b/include/JSystem/JKernel/JKRArchive.h
index 47a8c1bc25..977a166ea8 100644
--- a/include/JSystem/JKernel/JKRArchive.h
+++ b/include/JSystem/JKernel/JKRArchive.h
@@ -51,16 +51,15 @@ extern u32 sCurrentDirID__10JKRArchive; // JKRArchive::sCurrentDirID
class JKRArchive : public JKRFileLoader {
public:
struct SDirEntry {
- union {
- u32 type;
- struct {
- u8 flags;
- u8 padding;
- u16 id;
- } other;
- };
-
+ u8 flags;
+ u8 padding;
+ u16 id;
const char* name;
+ };
+
+ struct SDIDirEntry {
+ u32 type;
+ u32 name_offset;
u16 field_0x8;
u16 num_entries;
s32 first_file_index;
@@ -139,8 +138,8 @@ public:
protected:
bool isSameName(CArcName&, u32, u16) const;
- SDirEntry* findResType(u32) const;
- SDirEntry* findDirectory(const char*, u32) const;
+ SDIDirEntry* findResType(u32) const;
+ SDIDirEntry* findDirectory(const char*, u32) const;
SDIFileEntry* findTypeResource(u32, const char*) const;
SDIFileEntry* findFsResource(const char*, u32) const;
SDIFileEntry* findIdxResource(u32) const;
@@ -175,7 +174,7 @@ protected:
/* 0x3D */ u8 field_0x3d[3];
/* 0x40 */ s32 mEntryNum;
/* 0x44 */ SArcDataInfo* mArcInfoBlock;
- /* 0x48 */ SDirEntry* mNodes;
+ /* 0x48 */ SDIDirEntry* mNodes;
public:
/* 0x4C */ SDIFileEntry* mFiles;