RobLoach / libretro-dats

Build some of the libretro-database DATs
http://github.com/libretro/libretro-database
25 stars 18 forks source link

[CHD file support] Prefer first data track instead of cue/gdi file itself #20

Closed bkoropoff closed 6 years ago

bkoropoff commented 6 years ago

This is a companion PR to https://github.com/libretro/RetroArch/pull/5445. This should only be merged if/when that PR is accepted. This change is necessary because CHD files do not preserve the original .cue or .gdi file, so the CRC for the first data track needs to be looked up instead.

RobLoach commented 6 years ago

Oh, this is fancy! Anything missing for a merge??? :+1:

bkoropoff commented 6 years ago

I've updated this to use the largest data track rather than the first, as I found some discs that had identical first data tracks (e.g. a stock ISO filesystem for Windows instead of the actual game, which is on a later data track). That's probably the best heuristic available.

bkoropoff commented 6 years ago

Also, there are some input files that I don't have access to, so you'll probably have to handle regenerating libretro-database for those.