mirror of
https://github.com/stenzek/duckstation.git
synced 2026-10-12 02:23:23 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user