prime/include/Kyoto/CDvdFile.hpp

32 lines
585 B
C++
Raw Normal View History

#ifndef _CDVDFILE
#define _CDVDFILE
#include "types.h"
2022-12-03 21:31:54 +00:00
#include "Kyoto/IDvdRequest.hpp"
2023-01-13 00:05:25 +00:00
struct DVDFileInfo;
class CDvdFile {
public:
CDvdFile(const char* name);
~CDvdFile();
uint Length() { return x14_size; }
IDvdRequest* SyncRead(void* buf, uint len);
static bool FileExists(const char*);
2023-01-13 00:05:25 +00:00
static void DVDARAMXferCallback(long, DVDFileInfo*);
2023-01-14 09:26:24 +00:00
static void ARAMARAMXferCallback(u32 addr);
2023-01-13 00:05:25 +00:00
void HandleDVDInterrupt();
2023-01-14 09:26:24 +00:00
void HandleARAMInterrupt();
2023-01-13 00:05:25 +00:00
private:
uchar pad[0x14];
uint x14_size;
uchar pad2[0x10];
};
CHECK_SIZEOF(CDvdFile, 0x28)
#endif // _CDVDFILE