Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JKRFileFinder.h
Go to the documentation of this file.
1#ifndef JKRFILEFINDER_H
2#define JKRFILEFINDER_H
3
4#include "dolphin/dvd.h"
5
11public:
13 mIsAvailable = false;
14 mIsFileOrDirectory = false;
15 }
16
17 bool isAvailable() const { return mIsAvailable; }
18 bool isFile() const { return mIsFileOrDirectory; }
19 bool isDirectory() const { return mIsFileOrDirectory; }
20
21protected:
22 /* 0x00 */ const char* mEntryName;
23 /* 0x04 */ s32 mEntryFileIndex;
24 /* 0x08 */ u16 mEntryId;
25 /* 0x0A */ u16 mEntryTypeFlags;
26 /* 0x0C */ // vtable
27public:
28 /* vt[2] */ virtual ~JKRFileFinder() {};
29 /* vt[3] */ virtual bool findNextFile(void) = 0;
30protected:
31 /* 0x10 */ bool mIsAvailable;
32 /* 0x11 */ bool mIsFileOrDirectory;
33 /* 0x12 */ u8 field_0x12[2];
34};
35
36class JKRArchive;
37
43public:
45 inline virtual ~JKRArcFinder() {}
46
47public:
48 /* vt[3] */ virtual bool findNextFile(void); /* override */
49
50private:
51 /* 0x00 */ // JKRFileFinder_UnknownBase
52 /* 0x0C */ // vtable
53 /* 0x10 */ // JKRFileFinder
54 /* 0x14 */ JKRArchive* mArchive;
55 /* 0x18 */ s32 mStartIndex;
56 /* 0x1C */ s32 mEndIndex;
57 /* 0x20 */ s32 mNextIndex;
58};
59
61public:
62 JKRDvdFinder(const char*);
63 virtual ~JKRDvdFinder();
64
65public:
66 /* vt[3] */ virtual bool findNextFile(void); /* override */
67
68private:
69 /* 0x00 */ // JKRFileFinder_UnknownBase
70 /* 0x0C */ // vtable
71 /* 0x10 */ // JKRFileFinder
73 /* 0x20 */ bool mDvdIsOpen;
74 /* 0x21 */ u8 field_0x21[3];
75};
76
77#endif /* JKRFILEFINDER_H */
Definition JKRFileFinder.h:42
JKRArchive * mArchive
Definition JKRFileFinder.h:54
virtual ~JKRArcFinder()
Definition JKRFileFinder.h:45
s32 mNextIndex
Definition JKRFileFinder.h:57
virtual bool findNextFile(void)
Definition JKRFileFinder.cpp:15
s32 mEndIndex
Definition JKRFileFinder.h:56
s32 mStartIndex
Definition JKRFileFinder.h:55
Definition JKRArchive.h:57
Definition JKRFileFinder.h:60
bool mDvdIsOpen
Definition JKRFileFinder.h:73
virtual bool findNextFile(void)
Definition JKRFileFinder.cpp:48
DVDDirectory mDvdDirectory
Definition JKRFileFinder.h:72
u8 field_0x21[3]
Definition JKRFileFinder.h:74
virtual ~JKRDvdFinder()
Definition JKRFileFinder.cpp:41
Definition JKRFileFinder.h:10
u16 mEntryId
Definition JKRFileFinder.h:24
bool isAvailable() const
Definition JKRFileFinder.h:17
JKRFileFinder()
Definition JKRFileFinder.h:12
virtual ~JKRFileFinder()
Definition JKRFileFinder.h:28
bool isFile() const
Definition JKRFileFinder.h:18
u16 mEntryTypeFlags
Definition JKRFileFinder.h:25
u8 field_0x12[2]
Definition JKRFileFinder.h:33
const char * mEntryName
Definition JKRFileFinder.h:22
bool mIsAvailable
Definition JKRFileFinder.h:31
bool mIsFileOrDirectory
Definition JKRFileFinder.h:32
bool isDirectory() const
Definition JKRFileFinder.h:19
virtual bool findNextFile(void)=0
s32 mEntryFileIndex
Definition JKRFileFinder.h:23
Definition dvd.h:33
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8