- if ((index == 0xFFFFFFFF) || (romList[index].flags & FF_BIOS))
- return; // CRC wasn't found, so bail...
+ // Here we filter out files *not* in the DB (if configured that way) and
+ // BIOS files.
+ if (index == 0xFFFFFFFF)
+ {
+ // If we allow unknown software, we pass the (-1) index on, otherwise...
+ if (!allowUnknownSoftware)
+ return; // CRC wasn't found, so bail...
+ }
+ else if (romList[index].flags & FF_BIOS)
+ return;