mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
save event times to savestates
This commit is contained in:
parent
65514d85d5
commit
6a98f03eef
5 changed files with 26 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* PicoDrive
|
||||
* (C) notaz, 2009,2010
|
||||
* (C) notaz, 2009,2010,2013
|
||||
*
|
||||
* This work is licensed under the terms of MAME license.
|
||||
* See COPYING file in the top-level directory.
|
||||
|
@ -225,7 +225,7 @@ static void fillend_event(unsigned int now)
|
|||
|
||||
typedef void (event_cb)(unsigned int now);
|
||||
|
||||
static unsigned int event_times[P32X_EVENT_COUNT];
|
||||
unsigned int event_times[P32X_EVENT_COUNT];
|
||||
static unsigned int event_time_next;
|
||||
static event_cb *event_cbs[] = {
|
||||
[P32X_EVENT_PWM] = pwm_irq_event,
|
||||
|
|
|
@ -1619,9 +1619,11 @@ void PicoMemSetup32x(void)
|
|||
|
||||
void Pico32xStateLoaded(void)
|
||||
{
|
||||
sh2s[0].m68krcycles_done = sh2s[1].m68krcycles_done = SekCycleCntT;
|
||||
p32x_poll_event(3, 0);
|
||||
|
||||
bank_switch(Pico32x.regs[4 / 2]);
|
||||
Pico32xSwapDRAM((Pico32x.vdp_regs[0x0a / 2] & P32XV_FS) ^ P32XV_FS);
|
||||
p32x_poll_event(3, 0);
|
||||
Pico32x.dirty_pal = 1;
|
||||
memset(Pico32xMem->pwm, 0, sizeof(Pico32xMem->pwm));
|
||||
p32x_timers_recalc();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue