CD-ROM: Assorted fixes and correct an incorrectly inverted mode 2 form check.

This commit is contained in:
OBattler
2025-08-27 16:08:55 +02:00
parent b576ad256e
commit e9eb337b4f
2 changed files with 3 additions and 3 deletions

View File

@@ -344,7 +344,7 @@ cdrom_is_sector_good(cdrom_t *dev, const uint8_t *b, const uint8_t mode2, const
{
int ret = 1;
if (!mode2 || (form != 1)) {
if (!mode2 || (form == 1)) {
if (mode2 && (form == 1)) {
const uint32_t crc = cdrom_crc32(0xffffffff, &(b[16]), 2056) ^ 0xffffffff;