Commit b431965
authored
cdfs: fix createdvd CHD hashing for PS2/PSP RetroAchievements (#18955)
DVD-format CHDs created with `chdman createdvd` have no CD track
metadata. The DVD metadata tag sets track type to "DVD" but leaves
frames=0, causing chdstream_find_special_track to skip the track
when selecting CHDSTREAM_TRACK_PRIMARY since 0 > 0 is false.
Fix by immediately returning DVD tracks as the primary data track,
since a createdvd CHD only ever has one track and it is always data.
Fixes hash generation failed for PS2/PSP games stored as createdvd
CHDs when using RetroAchievements. Closes #16145.1 parent cf73f1a commit b431965
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
323 | 330 | | |
324 | 331 | | |
325 | 332 | | |
| |||
0 commit comments