mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 23:07:46 -04:00
fix emuloop init to use correct pal value
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@876 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
57e9b4d30d
commit
b120fe0431
1 changed files with 8 additions and 7 deletions
15
common/emu.c
15
common/emu.c
|
@ -1428,6 +1428,14 @@ void emu_loop(void)
|
||||||
Pico.m.dirtyPal = 1;
|
Pico.m.dirtyPal = 1;
|
||||||
rendstatus_old = -1;
|
rendstatus_old = -1;
|
||||||
|
|
||||||
|
PicoLoopPrepare();
|
||||||
|
|
||||||
|
// prepare CD buffer
|
||||||
|
if (PicoAHW & PAHW_MCD)
|
||||||
|
PicoCDBufferInit();
|
||||||
|
|
||||||
|
pemu_loop_prep();
|
||||||
|
|
||||||
/* number of ticks per frame */
|
/* number of ticks per frame */
|
||||||
if (Pico.m.pal) {
|
if (Pico.m.pal) {
|
||||||
target_fps = 50;
|
target_fps = 50;
|
||||||
|
@ -1437,13 +1445,6 @@ void emu_loop(void)
|
||||||
target_frametime = ms_to_ticks(1000) / 60 + 1;
|
target_frametime = ms_to_ticks(1000) / 60 + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// prepare CD buffer
|
|
||||||
if (PicoAHW & PAHW_MCD)
|
|
||||||
PicoCDBufferInit();
|
|
||||||
PicoLoopPrepare();
|
|
||||||
|
|
||||||
pemu_loop_prep();
|
|
||||||
|
|
||||||
timestamp_fps = get_ticks();
|
timestamp_fps = get_ticks();
|
||||||
reset_timing = 1;
|
reset_timing = 1;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue