mirror of
https://github.com/holub/mame
synced 2025-05-22 13:48:55 +03:00
no whatsnew: fixed double saving in crystal.c and improved bankswitch restoring. still no save states, though.
This commit is contained in:
parent
ea20c3f440
commit
2ed1d50391
@ -157,7 +157,6 @@ public:
|
||||
running_device *vr0video;
|
||||
};
|
||||
|
||||
|
||||
static void IntReq( running_machine *machine, int num )
|
||||
{
|
||||
crystal_state *state = (crystal_state *)machine->driver_data;
|
||||
@ -549,6 +548,16 @@ loop:
|
||||
#endif
|
||||
}
|
||||
|
||||
static STATE_POSTLOAD( crystal_banksw_postload )
|
||||
{
|
||||
crystal_state *state = (crystal_state *)machine->driver_data;
|
||||
|
||||
if (state->Bank <= 2)
|
||||
memory_set_bankptr(machine, "bank1", memory_region(machine, "user1") + state->Bank * 0x1000000);
|
||||
else
|
||||
memory_set_bankptr(machine, "bank1", memory_region(machine, "user2"));
|
||||
}
|
||||
|
||||
static MACHINE_START( crystal )
|
||||
{
|
||||
crystal_state *state = (crystal_state *)machine->driver_data;
|
||||
@ -564,7 +573,6 @@ static MACHINE_START( crystal )
|
||||
|
||||
PatchReset(machine);
|
||||
|
||||
// save states
|
||||
#ifdef IDLE_LOOP_SPEEDUP
|
||||
state_save_register_global(machine, state->FlipCntRead);
|
||||
#endif
|
||||
@ -573,11 +581,11 @@ static MACHINE_START( crystal )
|
||||
state_save_register_global(machine, state->FlipCount);
|
||||
state_save_register_global(machine, state->IntHigh);
|
||||
state_save_register_global_array(machine, state->Timerctrl);
|
||||
state_save_register_global(machine, state->OldPort4);
|
||||
state_save_register_global(machine, state->FlashCmd);
|
||||
state_save_register_global(machine, state->PIO);
|
||||
state_save_register_global_array(machine, state->DMActrl);
|
||||
state_save_register_global(machine, state->OldPort4);
|
||||
state_save_register_postload(machine, crystal_banksw_postload, NULL);
|
||||
}
|
||||
|
||||
static MACHINE_RESET( crystal )
|
||||
|
Loading…
Reference in New Issue
Block a user