The OAK OTi graphic card code no longer loads the ROM if the ROM file name pointer is NULL.

This commit is contained in:
OBattler
2020-01-14 20:51:06 +01:00
parent 70ccf03f2d
commit 0371dc9664

View File

@@ -372,8 +372,10 @@ oti_init(const device_t *info)
break;
}
rom_init(&oti->bios_rom, romfn,
0xc0000, 0x8000, 0x7fff, 0, MEM_MAPPING_EXTERNAL);
if (romfn != NULL) {
rom_init(&oti->bios_rom, romfn,
0xc0000, 0x8000, 0x7fff, 0, MEM_MAPPING_EXTERNAL);
}
oti->vram_mask = (oti->vram_size << 10) - 1;