From 427fa039ba060a0320c90f0fc0d3165baa4739c9 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 15 Apr 2015 09:04:10 -0700 Subject: [PATCH] Note why multiple blocks aren't optimized in CSO. --- pcsx2/CDVD/CsoFileReader.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcsx2/CDVD/CsoFileReader.cpp b/pcsx2/CDVD/CsoFileReader.cpp index 0f118202b0..70b7a7eb51 100644 --- a/pcsx2/CDVD/CsoFileReader.cpp +++ b/pcsx2/CDVD/CsoFileReader.cpp @@ -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;