Fix for agallet fatalerror message: "memory_set_bank called for bank 'bank1' with invalid bank entry 0" (no whatsnew needed) [Fabio Priuli]

This commit is contained in:
Scott Stone 2010-01-12 19:25:36 +00:00
parent 33f186c1b8
commit 541a6687a0

View File

@ -3916,8 +3916,12 @@ static void init_cave(running_machine *machine)
static DRIVER_INIT( agallet ) static DRIVER_INIT( agallet )
{ {
cave_state *state = (cave_state *)machine->driver_data; cave_state *state = (cave_state *)machine->driver_data;
UINT8 *ROM = memory_region(machine, "audiocpu");
init_cave(machine); init_cave(machine);
memory_configure_bank(machine, "bank1", 0, 0x02, &ROM[0x00000], 0x4000);
memory_configure_bank(machine, "bank1", 2, 0x1e, &ROM[0x10000], 0x4000);
sailormn_unpack_tiles(machine, "gfx4"); sailormn_unpack_tiles(machine, "gfx4");
state->region_byte = 0x1f; state->region_byte = 0x1f;