mirror of
https://github.com/holub/mame
synced 2025-05-22 05:38:52 +03:00
Fixed cdrom extensions in listmedia (no whatsnew)
This commit is contained in:
parent
2ae30205df
commit
be42340a34
@ -59,11 +59,13 @@ void cdrom_image_device::device_config_complete()
|
||||
memset(&m_device_displayinfo, 0, sizeof(m_device_displayinfo));
|
||||
}
|
||||
|
||||
m_extension_list = "chd,cue,toc,nrg,gdi,iso,cdr";
|
||||
|
||||
image_device_format *format = global_alloc_clear(image_device_format);;
|
||||
format->m_index = 0;
|
||||
format->m_name = "chdcd";
|
||||
format->m_description = "CD-ROM drive";
|
||||
format->m_extensions = "chd,cue,toc,nrg,gdi,iso,cdr";
|
||||
format->m_extensions = m_extension_list;
|
||||
format->m_optspec = cd_option_spec;
|
||||
format->m_next = NULL;
|
||||
|
||||
|
@ -47,7 +47,7 @@ public:
|
||||
virtual bool must_be_loaded() const { return 0; }
|
||||
virtual bool is_reset_on_load() const { return 0; }
|
||||
virtual const char *image_interface() const { return m_interface; }
|
||||
virtual const char *file_extensions() const { return "chd"; }
|
||||
virtual const char *file_extensions() const { return m_extension_list; }
|
||||
virtual const option_guide *create_option_guide() const;
|
||||
|
||||
// specific implementation
|
||||
@ -61,6 +61,7 @@ protected:
|
||||
chd_file m_self_chd;
|
||||
cdrom_file *m_cdrom_handle;
|
||||
image_device_format m_format;
|
||||
const char *m_extension_list;
|
||||
};
|
||||
|
||||
// device type definition
|
||||
|
Loading…
Reference in New Issue
Block a user