2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CDVDFILE
|
|
|
|
#define _CDVDFILE
|
2022-04-10 00:17:06 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
2022-12-03 21:31:54 +00:00
|
|
|
#include "Kyoto/IDvdRequest.hpp"
|
2022-10-16 20:20:36 +00:00
|
|
|
|
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
|