Ejemplo n.º 1
0
void harddisk_image_device::device_config_complete()
{
	m_formatlist.append(*global_alloc(image_device_format("chd", "CHD Hard drive", "chd,hd", hd_option_spec)));

	// set brief and instance name
	update_names();
}
Ejemplo n.º 2
0
void legacy_floppy_image_device::device_config_complete()
{
	image_device_format **formatptr;
	image_device_format *format;
	formatptr = &m_formatlist;
	int cnt = 0;

	m_extension_list[0] = '\0';
	const struct FloppyFormat *floppy_options = ((floppy_interface*)static_config())->formats;
	for (int i = 0; floppy_options[i].construct; i++)
	{
		// only add if creatable
		if (floppy_options[i].param_guidelines) {
			// allocate a new format
			format = global_alloc_clear(image_device_format);

			// populate it
			format->m_index       = cnt;
			format->m_name        = floppy_options[i].name;
			format->m_description = floppy_options[i].description;
			format->m_extensions  = floppy_options[i].extensions;
			format->m_optspec     = floppy_options[i].param_guidelines;

			// and append it to the list
			*formatptr = format;
			formatptr = &format->m_next;
			cnt++;
		}
		image_specify_extension( m_extension_list, 256, floppy_options[i].extensions );
	}

	// set brief and instance name
	update_names();
}
Ejemplo n.º 3
0
void cdrom_image_device::device_config_complete()
{
	// inherit a copy of the static data
	const cdrom_interface *intf = reinterpret_cast<const cdrom_interface *>(static_config());
	if (intf != NULL)
		*static_cast<cdrom_interface *>(this) = *intf;

	// or initialize to defaults if none provided
	else
	{
		memset(&m_interface, 0, sizeof(m_interface));
		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  = m_extension_list;
	format->m_optspec     = cd_option_spec;
	format->m_next        = NULL;

	m_formatlist = format;

	// set brief and instance name
	update_names();
}
Ejemplo n.º 4
0
void harddisk_image_device::device_config_complete()
{
	m_formatlist.push_back(std::make_unique<image_device_format>("chd", "CHD Hard drive", "chd,hd", hd_option_spec));

	// set brief and instance name
	update_names();
}
Ejemplo n.º 5
0
void floppy_image_device::set_formats(const floppy_format_type *formats)
{
	image_device_format **formatptr;
	image_device_format *format;
	formatptr = &m_formatlist;
	extension_list[0] = '\0';
	fif_list = 0;
	for(int cnt=0; formats[cnt]; cnt++)
	{
		// allocate a new format
		floppy_image_format_t *fif = formats[cnt]();
		if(!fif_list)
			fif_list = fif;
		else
			fif_list->append(fif);

		format = global_alloc_clear(image_device_format);
		format->m_index       = cnt;
		format->m_name        = fif->name();
		format->m_description = fif->description();
		format->m_extensions  = fif->extensions();
		format->m_optspec     = "";

		image_specify_extension( extension_list, 256, fif->extensions() );
		// and append it to the list
		*formatptr = format;
		formatptr = &format->m_next;
	}

	// set brief and instance name
	update_names();
}
Ejemplo n.º 6
0
void harddisk_image_device::device_config_complete()
{
	add_format("chd", "CHD Hard drive", "chd,hd", hd_option_spec);

	// set brief and instance name
	update_names();
}
Ejemplo n.º 7
0
void harddisk_image_device::device_config_complete()
{
	// inherit a copy of the static data
	const harddisk_interface *intf = reinterpret_cast<const harddisk_interface *>(static_config());
	if (intf != NULL)
		*static_cast<harddisk_interface *>(this) = *intf;

	// or initialize to defaults if none provided
	else
	{
		memset(&m_device_image_load,   0, sizeof(m_device_image_load));
		memset(&m_device_image_unload, 0, sizeof(m_device_image_unload));
		memset(&m_interface, 0, sizeof(m_interface));
		memset(&m_device_displayinfo, 0, sizeof(m_device_displayinfo));
	}

	image_device_format *format = global_alloc_clear(image_device_format);;
	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;

	m_formatlist = format;

	// set brief and instance name
	update_names();
}
Ejemplo n.º 8
0
void cdrom_image_device::device_config_complete()
{
	m_extension_list = "chd,cue,toc,nrg,gdi,iso,cdr";

	add_format("chdcd", "CD-ROM drive", m_extension_list, "");

	// set brief and instance name
	update_names();
}
Ejemplo n.º 9
0
void cassette_image_device::device_config_complete()
{
	m_extension_list[0] = '\0';
	for (int i = 0; m_formats[i]; i++ )
		image_specify_extension( m_extension_list, 256, m_formats[i]->extensions );

	// set brief and instance name
	update_names();
}
Ejemplo n.º 10
0
void cdrom_image_device::device_config_complete()
{
	m_extension_list = "chd,cue,toc,nrg,gdi,iso,cdr";

	m_formatlist.append(*global_alloc(image_device_format("chdcd", "CD-ROM drive", m_extension_list, cd_option_spec)));

	// set brief and instance name
	update_names();
}
Ejemplo n.º 11
0
void midiin_device::device_config_complete(void)
{
	const midiin_config *intf = reinterpret_cast<const midiin_config *>(static_config());
	if(intf != NULL)
	{
		*static_cast<midiin_config *>(this) = *intf;
	}
	else
	{
		memset(&m_input_callback, 0, sizeof(m_input_callback));
	}
	update_names();
}
Ejemplo n.º 12
0
void printer_image_device::device_config_complete()
{
	// inherit a copy of the static data
	const printer_interface *intf = reinterpret_cast<const printer_interface *>(static_config());
	if (intf != NULL)
		*static_cast<printer_interface *>(this) = *intf;

	// or initialize to defaults if none provided
	else
	{
    	memset(&m_online, 0, sizeof(m_online));
	}

	// set brief and instance name
	update_names();
}
Ejemplo n.º 13
0
void bitbanger_device::device_config_complete(void)
{
	const bitbanger_config *intf = reinterpret_cast<const bitbanger_config *>(static_config());
	if(intf != NULL)
	{
		*static_cast<bitbanger_config *>(this) = *intf;
	}
	else
	{
		memset(&m_input_callback, 0, sizeof(m_input_callback));
		m_default_mode = 0;
		m_default_baud = 0;
		m_default_tune = 0;
	}
	update_names(BITBANGER, "bitbngr", "bitb");
}
Ejemplo n.º 14
0
void datapack_device::device_config_complete()
{
	image_device_format *format = global_alloc_clear(image_device_format);

	format->m_index 	  = 0;
	format->m_name        = "opk";
	format->m_description = "Psion Datapack image";
	format->m_extensions  = "opk";
	format->m_optspec     = datapack_option_spec;
	format->m_next		  = NULL;

	m_formatlist = format;

	// set brief and instance name
	update_names();
}
Ejemplo n.º 15
0
void legacy_floppy_image_device::device_config_complete()
{
	m_extension_list[0] = '\0';
	const struct FloppyFormat *floppy_options = m_config->formats;
	for (int i = 0; floppy_options[i].construct; i++)
	{
		// only add if creatable
		if (floppy_options[i].param_guidelines) {
			// allocate a new format and append it to the list
			m_formatlist.push_back(std::make_unique<image_device_format>(floppy_options[i].name, floppy_options[i].description, floppy_options[i].extensions, floppy_options[i].param_guidelines));
		}
		image_specify_extension( m_extension_list, 256, floppy_options[i].extensions );
	}

	// set brief and instance name
	update_names();
}
Ejemplo n.º 16
0
void z88cart_slot_device::device_config_complete()
{
	// inherit a copy of the static data
	const z88cart_interface *intf = reinterpret_cast<const z88cart_interface *>(static_config());
	if (intf != NULL)
	{
		*static_cast<z88cart_interface *>(this) = *intf;
	}

	// or initialize to defaults if none provided
	else
	{
		memset(&m_out_flp_cb, 0, sizeof(m_out_flp_cb));
	}

	// set brief and instance name
	update_names();
}
Ejemplo n.º 17
0
void microdrive_image_device::device_config_complete()
{
	// inherit a copy of the static data
	const microdrive_interface *intf = reinterpret_cast<const microdrive_interface *>(static_config());
	if (intf != NULL)
		*static_cast<microdrive_interface *>(this) = *intf;

	// or initialize to defaults if none provided
	else
	{
		memset(&m_out_comms_out_cb, 0, sizeof(m_out_comms_out_cb));
		memset(&m_interface, 0, sizeof(m_interface));
		memset(&m_device_displayinfo, 0, sizeof(m_device_displayinfo));
	}

	// set brief and instance name
	update_names();
}
Ejemplo n.º 18
0
void cdrom_image_device::device_config_complete()
{
	// inherit a copy of the static data
	const cdrom_interface *intf = reinterpret_cast<const cdrom_interface *>(static_config());
	if (intf != NULL)
		*static_cast<cdrom_interface *>(this) = *intf;

	// or initialize to defaults if none provided
	else
	{
		memset(&m_interface, 0, sizeof(m_interface));
		memset(&m_device_displayinfo, 0, sizeof(m_device_displayinfo));
	}

	m_extension_list = "chd,cue,toc,nrg,gdi,iso,cdr";

	m_formatlist.append(*global_alloc(image_device_format("chdcd", "CD-ROM drive", m_extension_list, cd_option_spec)));

	// set brief and instance name
	update_names();
}
Ejemplo n.º 19
0
void floppy_image_device::set_formats(const floppy_format_type *formats)
{
	extension_list[0] = '\0';
	fif_list = NULL;
	for(int cnt=0; formats[cnt]; cnt++)
	{
		// allocate a new format
		floppy_image_format_t *fif = formats[cnt]();
		if(!fif_list)
			fif_list = fif;
		else
			fif_list->append(fif);

		m_formatlist.append(*global_alloc(image_device_format(fif->name(), fif->description(), fif->extensions(), "")));

		image_specify_extension( extension_list, 256, fif->extensions() );
	}

	// set brief and instance name
	update_names();
}
Ejemplo n.º 20
0
void plus4_expansion_slot_device::device_config_complete()
{
	// inherit a copy of the static data
	const plus4_expansion_slot_interface *intf = reinterpret_cast<const plus4_expansion_slot_interface *>(static_config());
	if (intf != NULL)
	{
		*static_cast<plus4_expansion_slot_interface *>(this) = *intf;
	}

	// or initialize to defaults if none provided
	else
	{
    	memset(&m_in_dma_cd_cb, 0, sizeof(m_in_dma_cd_cb));
    	memset(&m_out_dma_cd_cb, 0, sizeof(m_out_dma_cd_cb));
    	memset(&m_out_irq_cb, 0, sizeof(m_out_irq_cb));
    	memset(&m_out_aec_cb, 0, sizeof(m_out_aec_cb));
	}

	// set brief and instance name
	update_names();
}
Ejemplo n.º 21
0
void cassette_image_device::device_config_complete()
{
	// inherit a copy of the static data
	const cassette_interface *intf = reinterpret_cast<const cassette_interface *>(static_config());
	if (intf != NULL)
		*static_cast<cassette_interface *>(this) = *intf;

	// or initialize to defaults if none provided
	else
	{
		memset(&m_formats, 0, sizeof(m_formats));
		memset(&m_create_opts, 0, sizeof(m_create_opts));
		memset(&m_default_state, 0, sizeof(m_default_state));
		memset(&m_interface, 0, sizeof(m_interface));
		memset(&m_device_displayinfo, 0, sizeof(m_device_displayinfo));
	}

	m_extension_list[0] = '\0';
	for (int i = 0; m_formats[i]; i++ )
		image_specify_extension( m_extension_list, 256, m_formats[i]->extensions );

	// set brief and instance name
	update_names();
}
Ejemplo n.º 22
0
void generic_slot_device::device_config_complete()
{
	// set brief and instance name
	update_names();
}
Ejemplo n.º 23
0
void cartslot_image_device::device_config_complete()
{
	// set brief and instance name
	update_names();
}
Ejemplo n.º 24
0
Archivo: slot.cpp Proyecto: ursine/mame
void crvision_cart_slot_device::device_config_complete()
{
	// set brief and instance name
	update_names();
}
Ejemplo n.º 25
0
void midiin_device::device_config_complete(void)
{
	update_names();
}
Ejemplo n.º 26
0
void tm990_189_rs232_image_device::device_config_complete()
{
	update_names();
}
Ejemplo n.º 27
0
	// device-level overrides
	virtual void device_config_complete() { update_names(); }
Ejemplo n.º 28
0
void ti_pio_attached_device::device_config_complete()
{
    update_names();
}
Ejemplo n.º 29
0
void floppy_image_device::device_config_complete()
{
	update_names();
}
Ejemplo n.º 30
0
void messimg_disk_image_device::device_config_complete()
{
	update_names(MESSIMG_DISK, "disk", "disk");
}