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); }
/*------------------------------------------------- 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); }
/*------------------------------------------------- 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); }
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); }
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); }
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); }
static void device_unload_cartslot_specified(mess_image *image) { process_cartridge(image, NULL); }
static int device_load_cartslot_specified(mess_image *image, mame_file *file) { return process_cartridge(image, file); }
static int device_init_cartslot_specified(mess_image *image) { process_cartridge(image, NULL); return 0; }