[libromdata] MegaDrive: Add external image URL support for the Teradrive TMSS ROM.
Some checks are pending
Codecov / run (push) Waiting to run
CodeQL / Analyze (cpp) (push) Waiting to run

This commit is contained in:
David Korth 2025-04-27 15:31:30 -04:00
parent 2be8490e97
commit dc2649beff
2 changed files with 16 additions and 0 deletions

View File

@ -8,6 +8,7 @@
* Requested by @DankRank.
* SNES: List the Nintendo Power directory for full NP cartridge dumps.
* Fixes #154: SNES: Nintendo Power directory
* MegaDrive: Add external image URL support for the Teradrive TMSS ROM.
* Bug fixes:
* NintendoDS_BNR: Animated icons were missing the animated icon flag.

View File

@ -1632,6 +1632,12 @@ int MegaDrive::extURLs(ImageType imageType, vector<ExtURL> &extURLs, int size) c
// Found an exception.
break;
}
if ((d->romType & MegaDrivePrivate::ROM_SYSTEM_MASK) == MegaDrivePrivate::ROM_SYSTEM_TERADRIVE) {
// Teradrive's TMSS ROM doesn't have a separator in the serial number.
break;
}
// Missing separator.
return -ENOENT;
}
@ -1646,6 +1652,15 @@ int MegaDrive::extURLs(ImageType imageType, vector<ExtURL> &extURLs, int size) c
case 'SF': case 'JN': case 'LG':
case 'HP': case 'MP': case '61': case '83':
break;
case 'SY':
// This may be the Teradrive TMSS ROM.
if ((d->romType & MegaDrivePrivate::ROM_SYSTEM_MASK) == MegaDrivePrivate::ROM_SYSTEM_TERADRIVE) {
break;
}
// Not valid for anything else.
return -ENOENT;
default:
// Not a valid ROM type.
return -ENOENT;