https://github.com/sdalu/ruby-chd
Reading MAME CHD file from Ruby
https://github.com/sdalu/ruby-chd
chd mame ruby
Last synced: 28 days ago
JSON representation
Reading MAME CHD file from Ruby
- Host: GitHub
- URL: https://github.com/sdalu/ruby-chd
- Owner: sdalu
- License: mit
- Created: 2022-01-08T01:27:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-08T01:50:42.000Z (over 4 years ago)
- Last Synced: 2025-07-06T18:59:18.004Z (11 months ago)
- Topics: chd, mame, ruby
- Language: C
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This library provide access to MAME CHD file format, using the [libchr][1]
library, If the library is not available on the system, the gem will
used its bundled version.
Examples
========
~~~ruby
CHD.open('file.chd') do |chd|
puts chd.version
puts chd.header
puts chd.metadata
chd.read_hunk(0)
chd.read_unit(0)
chd.read_bytes(1234, 5678)
end
~~~
~~~ruby
chd = CHD.new('file.chd')
cd = CHD::CD.new(chd)
cd.read_sector(1, :MODE1)
~~~
[1]: https://github.com/rtissera/libchdr