mirror of
https://github.com/encounter/tp.git
synced 2026-07-11 06:18:46 -07:00
JKRFileLoader, JKRFileFinder, and JKRThread (#60)
* JKRFileLoader OK * JKRFileFinder progress * JKRFileFinder OK * JKRFileCache fix virtual function signatures * added OSThread and OSContext types * JKRThread fixed nonmatching functions Co-authored-by: Julgodis <> Co-authored-by: Pheenoh <pheenoh@gmail.com>
This commit is contained in:
co-authored by
Julgodis <>
Pheenoh
parent
922a0df5ea
commit
0be0a7ea94
@@ -9,31 +9,33 @@ public:
|
||||
JKRFileLoader(void);
|
||||
virtual ~JKRFileLoader();
|
||||
|
||||
bool isMounted() { return this->mIsMounted; }
|
||||
bool isMounted() const { return this->mIsMounted; }
|
||||
|
||||
u32 getVolumeType() { return this->mVolumeType; }
|
||||
u32 getVolumeType() const { return this->mVolumeType; }
|
||||
|
||||
public:
|
||||
/* vt[03] */ virtual void unmount(void);
|
||||
/* vt[04] */ virtual void becomeCurrent(char const*) = 0;
|
||||
/* vt[05] */ virtual void getResource(char const*) = 0;
|
||||
/* vt[06] */ virtual void getResource(u32, char const*) = 0;
|
||||
/* vt[05] */ virtual void* getResource(char const*) = 0;
|
||||
/* vt[06] */ virtual void* getResource(u32, char const*) = 0;
|
||||
/* vt[07] */ virtual void readResource(void*, u32, char const*) = 0;
|
||||
/* vt[08] */ virtual void readResource(void*, u32, u32, char const*) = 0;
|
||||
/* vt[09] */ virtual void removeResourceAll(void) = 0;
|
||||
/* vt[10] */ virtual void removeResource(void*) = 0;
|
||||
/* vt[11] */ virtual void detachResource(void*) = 0;
|
||||
/* vt[10] */ virtual bool removeResource(void*) = 0;
|
||||
/* vt[11] */ virtual bool detachResource(void*) = 0;
|
||||
/* vt[12] */ virtual void getResSize(void const*) const = 0;
|
||||
/* vt[13] */ virtual void countFile(char const*) const = 0;
|
||||
/* vt[14] */ virtual void getFirstFile(char const*) const = 0;
|
||||
|
||||
private:
|
||||
JSULink<JKRFileLoader> mFileLoaderLink;
|
||||
char* mVolumeName;
|
||||
u32 mVolumeType;
|
||||
bool mIsMounted;
|
||||
u8 padding_0x31[3];
|
||||
int mMountCount;
|
||||
/* 0x00 */ // vtable
|
||||
/* 0x04 */ // JKRDisposer
|
||||
/* 0x18 */ JSULink<JKRFileLoader> mFileLoaderLink;
|
||||
/* 0x28 */ char* mVolumeName;
|
||||
/* 0x2C */ u32 mVolumeType;
|
||||
/* 0x30 */ bool mIsMounted;
|
||||
/* 0x31 */ u8 field_0x31[3];
|
||||
/* 0x34 */ u32 mMountCount;
|
||||
|
||||
public:
|
||||
static void* getGlbResource(char const*);
|
||||
@@ -41,7 +43,7 @@ public:
|
||||
static bool removeResource(void*, JKRFileLoader*);
|
||||
static bool detachResource(void*, JKRFileLoader*);
|
||||
static JKRFileLoader* findVolume(char const**);
|
||||
static char* fetchVolumeName(char*, long, char const*);
|
||||
static const char* fetchVolumeName(char*, long, char const*);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user