예제 #1
0
파일: cartslot.c 프로젝트: Ilgrim/MAMEHub
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
파일: diablo.cpp 프로젝트: trap15/mame
bool diablo_image_device::call_load()
{
	int our_result;

	our_result = internal_load_dsk();
	/* Check if there is an image_load callback defined */
	if (!m_device_image_load.isnull())
	{
		/* Let the override do some additional work/checks */
		our_result = m_device_image_load(*this);
	}
	return our_result;

}
예제 #3
0
파일: harddriv.c 프로젝트: LeWoY/MAMEHub
bool harddisk_image_device::call_load()
{
	int our_result;

	our_result = internal_load_hd();

	/* Check if there is an image_load callback defined */
	if ( m_device_image_load )
	{
		/* Let the override do some additional work/checks */
		our_result = m_device_image_load(*this);
	}
	return our_result;

}
예제 #4
0
파일: slot.cpp 프로젝트: Dagarman/mame
image_init_result generic_slot_device::call_load()
{
	if (m_cart)
	{
		if (!m_device_image_load.isnull())
			return m_device_image_load(*this);
		else
		{
			uint32_t len = common_get_size("rom");

			rom_alloc(len, m_width, m_endianness);
			common_load_rom(get_rom_base(), len, "rom");

			return image_init_result::PASS;
		}
	}

	return image_init_result::PASS;
}
예제 #5
0
bool generic_slot_device::call_load()
{
	if (m_cart)
	{
		if (!m_device_image_load.isnull())
			return m_device_image_load(*this);
		else
		{
			UINT32 len = common_get_size("rom");

			rom_alloc(len, m_width, m_endianness);
			common_load_rom(get_rom_base(), len, "rom");

			return IMAGE_INIT_PASS;
		}
	}

	return IMAGE_INIT_PASS;
}