Class GdiParser

Namespace
CHDSharp.Encoder
Assembly
CHDSharpLib.dll

Parses a Sega GD-ROM GDI descriptor into a table of contents, matching MAME's cdrom_file::parse_gdi. Track lines are <track> <lba> <type> <sector size> "<file>" <offset>; gaps between track LBAs become zero-filled pad frames at the end of the previous track.

public static class GdiParser
Inheritance
GdiParser
Inherited Members

Methods

Parse(string)

Parses a GDI descriptor into a GD-ROM table of contents.

public static CdToc Parse(string gdiPath)

Parameters

gdiPath string

Path to the .gdi file; referenced data files are resolved relative to it.

Returns

CdToc

The parsed table of contents (with GdRom set).

Exceptions

FileNotFoundException

The GDI file or a referenced data file does not exist.

InvalidDataException

The GDI file is malformed or uses unsupported track types.