* JKRDvdArchive.s split

* JKRMemArchive.s split

* JKRAramArchive.s split

* JKRCompArchive.s split

* JKRDecomp.s split

* JKRDvdRipper.s split

* JKRAramBlock.s split

* JKRAramHeap.s split

* JKRAramPiece.s split

* JKRAramStream.s split

* removed unused .s files

* JKRDvdAramRipper.s split

* JKRAram.s split

* cleanup and making vtables easier to debug

* fixed merge errors

* fixed JKRFileLoader::fetchVolumeName

Co-authored-by: Pheenoh <pheenoh@gmail.com>
This commit is contained in:
Jonathan Wase
2020-12-06 21:02:25 +01:00
committed by GitHub
parent 481c458e8d
commit ff2faa9804
201 changed files with 9912 additions and 8262 deletions
+13 -9
View File
@@ -6,20 +6,24 @@
class JKRFile : public JKRDisposer {
public:
JKRFile() : mIsOpen(false) {}
JKRFile() : mIsAvailable(false) {}
virtual ~JKRFile() {}
virtual bool open(const char*);
virtual void close();
virtual s32 readData(void*, long, long);
virtual s32 writeData(const void*, long, long);
virtual s32 getFileSize();
virtual bool open(long);
s32 read(void*, long, long);
bool isAvailable() {
return this->mIsAvailable;
}
public:
/* vt[03] */ virtual bool open(const char*) = 0;
/* vt[04] */ virtual void close() = 0;
/* vt[05] */ virtual s32 readData(void*, long, long) = 0;
/* vt[06] */ virtual s32 writeData(const void*, long, long) = 0;
/* vt[07] */ virtual s32 getFileSize() const = 0;
protected:
bool mIsOpen;
bool mIsAvailable;
u8 field_0x19[3];
};