mirror of
https://github.com/holub/mame
synced 2025-05-11 08:38:47 +03:00
[MT05141] Fixed intvkbd from crashing when trying to mount a software list entry. Also fixed a regression in intv crashing when attempting to mount a software list entry. [Wilbert Pol]
This commit is contained in:
parent
f807712fa7
commit
44db7e5624
@ -574,10 +574,11 @@ DEVICE_IMAGE_LOAD_MEMBER( intv_state,intv_cart )
|
|||||||
}
|
}
|
||||||
// deal with wsmlb paged rom
|
// deal with wsmlb paged rom
|
||||||
|
|
||||||
UINT8 *ecs_rom_region = m_region_ecs_rom->base();
|
|
||||||
size = image.get_software_region_length("F000_bank1");
|
size = image.get_software_region_length("F000_bank1");
|
||||||
if (size && ecs_rom_region) // only load if ecs is plugged in (should probably be done a different way)
|
if (size && m_region_ecs_rom) // only load if ecs is plugged in (should probably be done a different way)
|
||||||
{
|
{
|
||||||
|
UINT8 *ecs_rom_region = m_region_ecs_rom->base();
|
||||||
|
|
||||||
region = image.get_software_region("F000_bank1");
|
region = image.get_software_region("F000_bank1");
|
||||||
for (int j = 0; j < (size>>1); j++)
|
for (int j = 0; j < (size>>1); j++)
|
||||||
{
|
{
|
||||||
@ -829,7 +830,11 @@ DEVICE_IMAGE_LOAD_MEMBER( intv_state,intvkbd_cart )
|
|||||||
memory[0x4800 << 1] = 0xff;
|
memory[0x4800 << 1] = 0xff;
|
||||||
memory[(0x4800 << 1) + 1] = 0xff;
|
memory[(0x4800 << 1) + 1] = 0xff;
|
||||||
|
|
||||||
intv_load_rom_file(image);
|
if (image.software_entry() == NULL)
|
||||||
|
{
|
||||||
|
return intv_load_rom_file(image);
|
||||||
|
}
|
||||||
|
// Shouldn't we report failure here???
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp(image.device().tag(),":cart2") == 0) /* Keyboard component cartridge slot */
|
if (strcmp(image.device().tag(),":cart2") == 0) /* Keyboard component cartridge slot */
|
||||||
|
Loading…
Reference in New Issue
Block a user