mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
core, improve save/load
This commit is contained in:
parent
05138bbd89
commit
96baa875a0
2 changed files with 3 additions and 1 deletions
|
@ -616,7 +616,8 @@ void Pico32xStateLoaded(int is_early)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
sh2s[0].m68krcycles_done = sh2s[1].m68krcycles_done = SekCyclesDone();
|
if (sh2s[0].m68krcycles_done == 0 && sh2s[1].m68krcycles_done == 0)
|
||||||
|
sh2s[0].m68krcycles_done = sh2s[1].m68krcycles_done = SekCyclesDone();
|
||||||
p32x_update_irls(NULL, SekCyclesDone());
|
p32x_update_irls(NULL, SekCyclesDone());
|
||||||
p32x_timers_recalc();
|
p32x_timers_recalc();
|
||||||
p32x_pwm_state_loaded();
|
p32x_pwm_state_loaded();
|
||||||
|
|
|
@ -187,6 +187,7 @@ int PicoReset(void)
|
||||||
PsndReset(); // pal must be known here
|
PsndReset(); // pal must be known here
|
||||||
|
|
||||||
// create an empty "dma" to cause 68k exec start at random frame location
|
// create an empty "dma" to cause 68k exec start at random frame location
|
||||||
|
Pico.t.m68c_line_start = Pico.t.m68c_cnt;
|
||||||
PicoVideoFIFOWrite(rand() & 0x1fff, 0, 0, PVS_CPURD);
|
PicoVideoFIFOWrite(rand() & 0x1fff, 0, 0, PVS_CPURD);
|
||||||
|
|
||||||
SekFinishIdleDet();
|
SekFinishIdleDet();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue