Minor CDvdFile correction

Former-commit-id: 2c23ecd282204cbff9e8711a5d25b692d7c98425
This commit is contained in:
Phillip Stephens 2023-10-11 15:35:05 -07:00
parent 873d7539aa
commit d972f39a3c
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);