2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CDVDFILE
|
|
|
|
#define _CDVDFILE
|
2022-04-10 00:17:06 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
2022-10-16 20:20:36 +00:00
|
|
|
class IDvdRequest {
|
|
|
|
public:
|
|
|
|
virtual ~IDvdRequest() = 0; // 8
|
|
|
|
virtual void Unknown1(bool) = 0; // c
|
|
|
|
virtual bool IsComplete() = 0; // 10
|
|
|
|
};
|
|
|
|
|
2022-04-10 00:17:06 +00:00
|
|
|
class CDvdFile {
|
|
|
|
public:
|
2022-10-16 20:20:36 +00:00
|
|
|
CDvdFile(const char* name);
|
|
|
|
~CDvdFile();
|
|
|
|
uint Length() { return x14_size; }
|
|
|
|
|
|
|
|
IDvdRequest* SyncRead(void* buf, uint len);
|
|
|
|
|
2022-04-10 00:17:06 +00:00
|
|
|
static bool FileExists(const char*);
|
|
|
|
|
|
|
|
private:
|
2022-10-16 20:20:36 +00:00
|
|
|
uchar pad[0x14];
|
|
|
|
uint x14_size;
|
|
|
|
uchar pad2[0x10];
|
2022-04-10 00:17:06 +00:00
|
|
|
};
|
2022-10-16 20:20:36 +00:00
|
|
|
CHECK_SIZEOF(CDvdFile, 0x28)
|
2022-04-10 00:17:06 +00:00
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CDVDFILE
|