Class CueConverter
- Namespace
- CHDSharp
- Assembly
- CHDSharpLib.dll
Converts CUE sheets between the three common styles — chdman, Redump, and Redump+CATALOG —
and matches generated CUE text against a database hash (CHDlite convert_cue_style /
match_cue parity, chd_extractor.cpp:497-670). Style differences are limited to
the single-track file name suffix (" (Track 1)" in chdman output) and the CATALOG line.
public static class CueConverter
- Inheritance
-
CueConverter
- Inherited Members
Methods
ConvertCue(string, CueStyle)
Converts a CUE sheet to the requested style. Line endings are normalized to CRLF and
trailing empty lines are stripped. A leading CATALOG line is removed for the
non-CATALOG styles; the Redump+CATALOG style prepends CATALOG 0000000000000.
Single-track discs get/keep the " (Track 1)" suffix in the chdman style and lose it in
the Redump styles.
public static string ConvertCue(string cueText, CueStyle style)
Parameters
Returns
- string
The converted CUE sheet (CRLF line endings).
MatchCue(string, string)
Tries each CUE style and returns the first whose normalized output hashes to
dbHash (case-insensitive hex compare). Used to detect whether an
existing CUE was generated in chdman, Redump, or Redump+CATALOG form.
public static CueMatchResult MatchCue(string cueText, string dbHash)
Parameters
Returns
- CueMatchResult
A CueMatchResult with the matching style and normalized CUE, or
Style = nullwhen no style matches.