diff --git a/include/Kyoto/CDvdFile.hpp b/include/Kyoto/CDvdFile.hpp index edefbb3b..f9b5db89 100644 --- a/include/Kyoto/CDvdFile.hpp +++ b/include/Kyoto/CDvdFile.hpp @@ -30,7 +30,7 @@ public: void StartARAMFileLoad(); void StallForARAMFile(); 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); void CloseFile(); void CalcFileOffset(int offset, ESeekOrigin origin); diff --git a/src/Kyoto/DolphinCDvdFile.cpp b/src/Kyoto/DolphinCDvdFile.cpp index 1d8f7b7d..77d7f61e 100644 --- a/src/Kyoto/DolphinCDvdFile.cpp +++ b/src/Kyoto/DolphinCDvdFile.cpp @@ -224,9 +224,9 @@ CDvdFile::CDvdFile(const char* filename) 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(); CalcFileOffset(offset, origin);