CDImageCHD: Read out the correct sector size depending on mode

Probably doesn't affect anything in normal PSX dumps, but possibly
homebrew.
This commit is contained in:
Stenzek
2026-10-01 15:09:00 +10:00
parent e68431fda8
commit 3f037f2682
+1 -1
View File
@@ -505,7 +505,7 @@ bool CDImageCHD::ReadSectorFromIndex(void* buffer, const Index& index, LBA lba_i
if (index.mode == TrackMode::Audio)
CopyAndSwap(buffer, &m_hunk_buffer[hunk_offset]);
else
std::memcpy(buffer, &m_hunk_buffer[hunk_offset], RAW_SECTOR_SIZE);
std::memcpy(buffer, &m_hunk_buffer[hunk_offset], GetBytesPerSector(index.mode));
return true;
}