Note why multiple blocks aren't optimized in CSO.

This commit is contained in:
Unknown W. Brackets 2015-04-15 09:04:10 -07:00
parent 49cfc3424b
commit 427fa039ba
1 changed files with 3 additions and 0 deletions

View File

@ -183,6 +183,9 @@ int CsoFileReader::ReadSync(void* pBuffer, uint sector, uint count) {
return 0;
}
// Note that, in practice, count will always be 1. It seems one sector is read
// per interrupt, even if multiple are requested by the application.
u8* dest = (u8*)pBuffer;
// We do it this way in case m_blocksize is not well aligned to our frame size.
u64 pos = (u64)sector * (u64)m_blocksize;