Class HardDiskTemplates
Predefined hard disk geometry templates, matching MAME's s_hd_templates table
(chdman.cpp). Used by chdman createhd -tp <id> to write exact CHS geometry
into the CHD's 'GDDD' metadata instead of guessing from the file size.
public static class HardDiskTemplates
- Inheritance
-
HardDiskTemplates
- Inherited Members
Fields
Templates
The built-in hard disk geometry templates (17 entries), matching MAME's
s_hd_templates array in chdman.cpp:918.
public static readonly HardDiskTemplates.HardDiskTemplate[] Templates
Field Value
Methods
GetTemplate(int)
Looks up a template by its zero-based index.
public static HardDiskTemplates.HardDiskTemplate GetTemplate(int id)
Parameters
idintTemplate ID (0-based).
Returns
- HardDiskTemplates.HardDiskTemplate
The template at the given index.
Exceptions
- ArgumentOutOfRangeException
idis out of range.