mirror of
https://github.com/zeldaret/tp
synced 2026-05-30 08:56:46 -04:00
fb1217e3f9
* Added JSUListIterator and decompiled JKRHeap::dispose_subroutine * JKRDisposer! * only 4 functions not OK in JKRHeap * JKRThread asm functions * more JKRThread * JKRThreadSwitch * JKRThread::JKRThread * More JKRTHread functions and vtable * fixed bad merge * update JKRThread and JKRThreadSwitch to use new virtual inheritance * save before asmsplit.py script * JKRFile * JKRDvdFile * JKRFileCache * JKRFileFinder * JKRFileLoader * JKRAssertHeap * JKRExpHeap * JKRSolidHeap * fixed type and functions definitions * JKRArchive (Pub) * missed file * JKRArchive * forgot obj_files.mk * fixed merge error and class members * class members * removed unused asm files * added names to global variables * class members for JKRHeap, JKRExpHeap, JKRSolidHeap, and JKRFileCache.
59 lines
1023 B
C++
59 lines
1023 B
C++
#ifndef __JKRFILEFINDER_H__
|
|
#define __JKRFILEFINDER_H__
|
|
|
|
#include "dolphin/types.h"
|
|
|
|
struct JKRFileFinder_UnknownBase {
|
|
u32 field_0x0;
|
|
u32 field_0x4;
|
|
u16 field_0x8;
|
|
u16 field_0xa;
|
|
};
|
|
|
|
class JKRFileFinder : JKRFileFinder_UnknownBase {
|
|
public:
|
|
JKRFileFinder();
|
|
virtual ~JKRFileFinder();
|
|
|
|
virtual bool findNextFile(void) = 0;
|
|
|
|
bool isAvailable() {
|
|
return this->mIsAvailable;
|
|
}
|
|
|
|
private:
|
|
bool mIsAvailable;
|
|
bool field_0x11;
|
|
u8 padding_0x12[2];
|
|
};
|
|
|
|
class JKRArchive;
|
|
class JKRArcFinder : public JKRFileFinder {
|
|
public:
|
|
JKRArcFinder(JKRArchive*, long, long);
|
|
virtual ~JKRArcFinder();
|
|
|
|
virtual bool findNextFile(void);
|
|
|
|
private:
|
|
JKRArchive* mArchive;
|
|
u32 field_0x18;
|
|
u32 field_0x1c;
|
|
u32 field_0x20;
|
|
};
|
|
|
|
class JKRDvdFinder : public JKRFileFinder {
|
|
public:
|
|
JKRDvdFinder(char const*);
|
|
virtual ~JKRDvdFinder();
|
|
|
|
virtual bool findNextFile(void);
|
|
|
|
private:
|
|
u8 mDvd[12];
|
|
bool mDvdIsOpen;
|
|
u8 padding_0x21[3];
|
|
};
|
|
|
|
#endif
|