← Feed
@alice@mk.nyaa.place
Post #3434496
2026-05-21 02:19 UTC
Update on CHD support: one of the issues has been fixed and images that don't have audio tracks just work now. Images with audio tracks not yet, needs pregap support.
Highscore-Message: 06:13:51.175: game-parser.vala:49: mega-cd: Final Fantasy VII: Track 1 is not Mode 1, discarding
Highscore-Message: 06:13:51.175: game-parser.vala:49: mega-cd: Final Fantasy VII: Track 1 is not Mode 1, discarding
Highscore-Message: 06:13:51.176: game-parser.vala:49: mega-cd: Final Fantasy VII: Track 1 is not Mode 1, discarding
Highscore-Message: 06:13:51.179: game-parser.vala:49: mega-cd-32x: Final Fantasy VII: Track 1 is not Mode 1, discarding
Highscore-Message: 06:13:51.179: game-parser.vala:49: mega-cd-32x: Final Fantasy VII: Track 1 is not Mode 1, discarding
Highscore-Message: 06:13:51.180: game-parser.vala:49: mega-cd-32x: Final Fantasy VII: Track 1 is not Mode 1, discarding
Highscore-Message: 06:13:51.182: game-parser.vala:49: pc-engine-cd: Final Fantasy VII: Game must have at least 2 tracks, discarding
Highscore-Message: 06:13:51.183: game-parser.vala:49: pc-engine-cd: Final Fantasy VII: Game must have at least 2 tracks, discarding
Highscore-Message: 06:13:51.183: game-parser.vala:49: pc-engine-cd: Final Fantasy VII: Game must have at least 2 tracks, discarding
Highscore-Message: 06:13:51.186: game-parser.vala:49: playstation: Final Fantasy VII: Found disc ID in SYSTEM.CNF: SCUS-94163
Highscore-Message: 06:13:51.193: game-parser.vala:49: playstation: Final Fantasy VII: Found disc ID in SYSTEM.CNF: SCUS-94164
Highscore-Message: 06:13:51.193: game-parser.vala:49: playstation: Final Fantasy VII: Found disc ID in SYSTEM.CNF: SCUS-94165
Highscore-Message: 06:13:52.286: game-parser.vala:49: playstation: Final Fantasy VII: Media SCUS-94165 is a part of a set: [SCUS-94163, SCUS-94164, SCUS-94165]
Highscore-Message: 06:13:52.325: game-parser.vala:49: playstation: Final Fantasy VII: Media SCUS-94163 is a part of a set: [SCUS-94163, SCUS-94164, SCUS-94165]
Highscore-Message: 06:13:52.414: game-parser.vala:49: playstation: Final Fantasy VII: Media SCUS-94164 is a part of a set: [SCUS-94163, SCUS-94164, SCUS-94165]
Highscore-Message: 06:13:52.414: game-parser.vala:49: playstation: Final Fantasy VII: Created a game from media set [SCUS-94163, SCUS-94164, SCUS-94165]
I.e. it successfully recognized FF7 from 3 CHD images.
Now what doesn't work is Mednafen - whoops. While I backported CHD support from libretro, it's obviously untested since libmirage didn't support it.
I backported it from beetle-saturn, and I thought that it would be similar enough in beetle-psx. It wasn't. In fact, the 2 implementations are almost completely different.
So:
(highscore-runner:221165): Mednafen-CRITICAL **: 06:13:52.900: Error opening CD: Unknown CUE sheet directive "MCOMPRHD".
But the good news is that now I have means of testing it, so I'm not doing it blindly anymore - even if I only have one game to test it with rn.
Replies (1)
-
More updates: libmirage added pre/postgap support, so every image I have parses properly now.
I also fixed mednafen - this one was non-trivial but basically I used the beetle-pce-fast implementation (which is also separate - there are 3 different ones, not 2!) + manually backported SBI support (mostly based on the bin/cue upstream implementation rather than the libretro one). Either way - PCE CD, PSX and Saturn all work.
Now, what doesn't work is calculating checksums. It took me a bit to find it, but there are 2 issues in play.
The first one is - my hacky sector reading optimization breaks because the image is compressed. Whoops. And it's not really fixable without modifying libmirage, so for now reading CHD images is slow (like, 20s for one image kind of slow).
The other problem is that audio track data is byteswapped. While in theory having non-byteswapped format. Either way, it's a libmirage bug, and after changing it (for testing), it works and the checksums are correct - the same game in bin/cue and chd is recognized as the same game.
Open ##3434494