diff options
author | 2013-01-11 07:32:46 +0000 | |
---|---|---|
committer | 2013-01-11 07:32:46 +0000 | |
commit | 0e19f641d3186cdbf51f8ca857e2b07ab95779c2 (patch) | |
tree | 234109de1123b13f217494af4b3f8efad346d5cc /src/emu/imagedev/harddriv.c | |
parent | 111157ca09a9ff60fe4a9ba49173c315e94314fa (diff) |
Cleanups and version bumpmame0148
Diffstat (limited to 'src/emu/imagedev/harddriv.c')
-rw-r--r-- | src/emu/imagedev/harddriv.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/emu/imagedev/harddriv.c b/src/emu/imagedev/harddriv.c index 8f9f80e3a82..05b3c76ab3e 100644 --- a/src/emu/imagedev/harddriv.c +++ b/src/emu/imagedev/harddriv.c @@ -18,11 +18,11 @@ static OPTION_GUIDE_START(hd_option_guide) - OPTION_INT('C', "cylinders", "Cylinders") - OPTION_INT('H', "heads", "Heads") - OPTION_INT('S', "sectors", "Sectors") - OPTION_INT('L', "sectorlength", "Sector Bytes") - OPTION_INT('K', "hunksize", "Hunk Bytes") + OPTION_INT('C', "cylinders", "Cylinders") + OPTION_INT('H', "heads", "Heads") + OPTION_INT('S', "sectors", "Sectors") + OPTION_INT('L', "sectorlength", "Sector Bytes") + OPTION_INT('K', "hunksize", "Hunk Bytes") OPTION_GUIDE_END static const char *hd_option_spec = @@ -37,10 +37,10 @@ const device_type HARDDISK = &device_creator<harddisk_image_device>; //------------------------------------------------- harddisk_image_device::harddisk_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, HARDDISK, "Harddisk", tag, owner, clock), - device_image_interface(mconfig, *this), - m_chd(NULL), - m_hard_disk_handle(NULL) + : device_t(mconfig, HARDDISK, "Harddisk", tag, owner, clock), + device_image_interface(mconfig, *this), + m_chd(NULL), + m_hard_disk_handle(NULL) { } @@ -76,12 +76,12 @@ void harddisk_image_device::device_config_complete() } image_device_format *format = global_alloc_clear(image_device_format);; - format->m_index = 0; + format->m_index = 0; format->m_name = "chd"; format->m_description = "CHD Hard drive"; format->m_extensions = "chd,hd"; format->m_optspec = hd_option_spec; - format->m_next = NULL; + format->m_next = NULL; m_formatlist = format; @@ -143,11 +143,11 @@ bool harddisk_image_device::call_create(int create_format, option_resolution *cr UINT32 cylinders, heads, sectors, totalsectors; astring metadata; - cylinders = option_resolution_lookup_int(create_args, 'C'); - heads = option_resolution_lookup_int(create_args, 'H'); - sectors = option_resolution_lookup_int(create_args, 'S'); - sectorsize = option_resolution_lookup_int(create_args, 'L'); - hunksize = option_resolution_lookup_int(create_args, 'K'); + cylinders = option_resolution_lookup_int(create_args, 'C'); + heads = option_resolution_lookup_int(create_args, 'H'); + sectors = option_resolution_lookup_int(create_args, 'S'); + sectorsize = option_resolution_lookup_int(create_args, 'L'); + hunksize = option_resolution_lookup_int(create_args, 'K'); totalsectors = cylinders * heads * sectors; |