CGBASupport (#13)

* Start work on GBASupport

* Match update

* Almost perfect match

* Very close to 100% match

* Match & link CGBASupport

* Fix some naming

* use c-cstle cast and round-up

Former-commit-id: d8804b5244
This commit is contained in:
Pwootage
2022-10-16 14:20:36 -06:00
committed by GitHub
parent 8db24c473a
commit 0fbdb1f381
10 changed files with 330 additions and 38 deletions

View File

@@ -3,12 +3,28 @@
#include "types.h"
class IDvdRequest {
public:
virtual ~IDvdRequest() = 0; // 8
virtual void Unknown1(bool) = 0; // c
virtual bool IsComplete() = 0; // 10
};
class CDvdFile {
public:
CDvdFile(const char* name);
~CDvdFile();
uint Length() { return x14_size; }
IDvdRequest* SyncRead(void* buf, uint len);
static bool FileExists(const char*);
private:
uchar pad[0x28];
uchar pad[0x14];
uint x14_size;
uchar pad2[0x10];
};
CHECK_SIZEOF(CDvdFile, 0x28)
#endif // _CDVDFILE