mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 15:01:53 -04:00
86f892c3d3
* 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>
31 lines
701 B
C++
31 lines
701 B
C++
#ifndef __JKRFILE_H__
|
|
#define __JKRFILE_H__
|
|
|
|
#include "dolphin/types.h"
|
|
#include "JSystem/JKernel/JKRDisposer/JKRDisposer.h"
|
|
|
|
class JKRFile : public JKRDisposer {
|
|
public:
|
|
JKRFile() : mIsAvailable(false) {}
|
|
virtual ~JKRFile() {}
|
|
|
|
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 mIsAvailable;
|
|
u8 field_0x19[3];
|
|
};
|
|
|
|
#endif
|