예제 #1
0
bool cartslot_image_device::call_load()
{
	/* if this cartridge has a custom DEVICE_IMAGE_LOAD, use it */
	if (!m_device_image_load.isnull())
		return m_device_image_load(*this);

	/* otherwise try the normal route */
	return process_cartridge(true);
}
예제 #2
0
파일: cartslot.c 프로젝트: Ilgrim/MAMEHub
/*-------------------------------------------------
    call_unload
-------------------------------------------------*/
void cartslot_image_device::call_unload()
{
	/* if this cartridge has a custom DEVICE_IMAGE_UNLOAD, use it */
	if (!m_device_image_unload.isnull())
	{
		m_device_image_unload(*this);
		return;
	}
	process_cartridge(false);
}
예제 #3
0
파일: cartslot.c 프로젝트: clobber/UME
/*-------------------------------------------------
    call_unload
-------------------------------------------------*/
void cartslot_image_device::call_unload()
{
	/* if this cartridge has a custom DEVICE_IMAGE_UNLOAD, use it */
	if (m_device_unload != NULL)
	{
		(*m_device_unload)(*this);
		return;
	}
	process_cartridge(false);
}
예제 #4
0
static DEVICE_IMAGE_LOAD( cartslot )
{
	device_t *device = &image.device();
	const cartslot_config *config = get_config(device);

	/* if this cartridge has a custom DEVICE_IMAGE_LOAD, use it */
	if (config->device_load != NULL)
		return (*config->device_load)(image);

	/* otherwise try the normal route */
	return process_cartridge(&image, PROCESS_LOAD);
}
예제 #5
0
static DEVICE_IMAGE_UNLOAD( cartslot )
{
	device_t *device = &image.device();
	const cartslot_config *config = get_config(device);

	/* if this cartridge has a custom DEVICE_IMAGE_UNLOAD, use it */
	if (config->device_unload != NULL)
	{
		(*config->device_unload)(image);
		return;
	}
	process_cartridge(&image, PROCESS_CLEAR);
}
예제 #6
0
파일: cartslot.c 프로젝트: cdenix/psmame
static DEVICE_IMAGE_UNLOAD( cartslot )
{
	device_t *device = &image.device();
	cartslot_t *cart = get_token(device);
	const cartslot_config *config = get_config(device);

	/* if this cartridge has a custom DEVICE_IMAGE_UNLOAD, use it */
	if (config->device_unload != NULL)
	{
		(*config->device_unload)(image);
		return;
	}

	if (cart->mc != NULL)
	{
		multicart_close(device->machine().options(), cart->mc);
		cart->mc = NULL;
	}

	process_cartridge(&image, PROCESS_CLEAR);
}
예제 #7
0
static void device_unload_cartslot_specified(mess_image *image)
{
	process_cartridge(image, NULL);
}
예제 #8
0
static int device_load_cartslot_specified(mess_image *image, mame_file *file)
{
	return process_cartridge(image, file);
}
예제 #9
0
static int device_init_cartslot_specified(mess_image *image)
{
	process_cartridge(image, NULL);
	return 0;
}