mirror of https://github.com/PrimeDecomp/prime.git
Minor CDvdFile correction
Former-commit-id: 2c23ecd282204cbff9e8711a5d25b692d7c98425
This commit is contained in:
parent
873d7539aa
commit
d972f39a3c
|
@ -30,7 +30,7 @@ public:
|
||||||
void StartARAMFileLoad();
|
void StartARAMFileLoad();
|
||||||
void StallForARAMFile();
|
void StallForARAMFile();
|
||||||
CDvdRequest* SyncRead(void* buf, uint len);
|
CDvdRequest* SyncRead(void* buf, uint len);
|
||||||
CDvdRequest* SyncSeekRead(void* buf, uint len, ESeekOrigin, int offset);
|
void SyncSeekRead(void* buf, uint len, ESeekOrigin, int offset);
|
||||||
CDvdRequest* AsyncSeekRead(void* buf, uint len, ESeekOrigin, int offset);
|
CDvdRequest* AsyncSeekRead(void* buf, uint len, ESeekOrigin, int offset);
|
||||||
void CloseFile();
|
void CloseFile();
|
||||||
void CalcFileOffset(int offset, ESeekOrigin origin);
|
void CalcFileOffset(int offset, ESeekOrigin origin);
|
||||||
|
|
|
@ -224,9 +224,9 @@ CDvdFile::CDvdFile(const char* filename)
|
||||||
|
|
||||||
CDvdFile::~CDvdFile() { CloseFile(); }
|
CDvdFile::~CDvdFile() { CloseFile(); }
|
||||||
|
|
||||||
CDvdRequest* CDvdFile::SyncRead(void* dest, uint len) { AsyncSeekRead(dest, len, kSO_Cur, 0); }
|
CDvdRequest* CDvdFile::SyncRead(void* dest, uint len) { return AsyncSeekRead(dest, len, kSO_Cur, 0); }
|
||||||
|
|
||||||
CDvdRequest* CDvdFile::SyncSeekRead(void* dest, uint len, ESeekOrigin origin, int offset) {
|
void CDvdFile::SyncSeekRead(void* dest, uint len, ESeekOrigin origin, int offset) {
|
||||||
StallForARAMFile();
|
StallForARAMFile();
|
||||||
CalcFileOffset(offset, origin);
|
CalcFileOffset(offset, origin);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue