This library provide access to MAME CHD file format, using the libchr library, If the library is not available on the system, the gem will used its bundled version.
CHD.open('file.chd')do |chd|
putschd.versionputschd.headerputschd.metadatachd.read_hunk(0)chd.read_unit(0)chd.read_bytes(1234,5678)endchd=CHD.new('file.chd')cd=CHD::CD.new(chd)cd.read_sector(1,:MODE1)