Skip to content

Commit

Permalink
CDVD: Byte swap hack. CHD CD audio with OSDSYS is working
Browse files Browse the repository at this point in the history
  • Loading branch information
F0bes committed Nov 26, 2024
1 parent 330d911 commit 79e005d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pcsx2/CDVD/InputIsoFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,15 @@ int InputIsoFile::FinishRead3(u8* dst, uint mode)
dst[diff - 9] = 2;
}

// why do we need to byte swap here ?!
if (m_type == ISOTYPE_AUDIO && mode == CDVD_MODE_2352)
{
for (int i = 0; i < 2352; i += 2)
{
std::swap(dst[diff + i], dst[diff + i + 1]);
}
}

return 0;
}

Expand Down

0 comments on commit 79e005d

Please sign in to comment.