mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
* Treat every disc descriptor as a disc, not just .cue playlist_files keyed on .cue alone, so a Dreamcast .gdi set, a CloneCD .ccd set and an Alcohol .mds set all fell through to "every file is a disc" -- the descriptor and the raw tracks it cannot boot without were listed side by side. The three readers of the rule each got that wrong in their own way: the playlist shipped inside the download zip named non-bootable tracks, and the in-browser disc swapper offered them as discs. Key on a set of descriptor extensions instead, so no one sheet format is privileged over the others. The shape is unchanged -- descriptors if any, else everything -- and so is the download zip, which lists every file regardless. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Keep a disc that stands on its own beside a descriptor Selecting descriptors and discarding everything else assumed a multi-file ROM is all one format. It is not: a .chd sitting beside a .gdi boots on its own, and returning only the .gdi dropped it from the playlist and from the swapper's targets. Exclude the raw tracks a sheet points at instead of keeping only sheets. The tracks are still not discs, so every case the previous commit fixed stays fixed, and a disc no sheet describes now survives. This also settles the same bug on the .cue path, which predates this branch: disc1.cue + disc1.bin + disc2.chd used to list the cue alone. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Count a sheet's audio tracks as tracks A .cue names its CDDA tracks the same way it names its data track, so a .wav or .flac beside one is data, not a disc. The playlist listed them. Brings the list in step with the shell's own in src/main/discs/m3u.ts, which has carried the audio formats since it was written. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>