From 46bcb899714b81396c77b737da200b09b73f6c1a Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 1 Jun 2010 14:02:15 +0000 Subject: [PATCH] fix emuloop init to use correct pal value git-svn-id: file:///home/notaz/opt/svn/PicoDrive@876 be3aeb3a-fb24-0410-a615-afba39da0efa --- pico/pico.c | 2 +- platform/common/emu.c | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/pico/pico.c b/pico/pico.c index 22f45a33..12677d7a 100644 --- a/pico/pico.c +++ b/pico/pico.c @@ -207,7 +207,7 @@ int PicoReset(void) return 0; } -// flush cinfig changes before emu loop starts +// flush config changes before emu loop starts void PicoLoopPrepare(void) { if (PicoRegionOverride) diff --git a/platform/common/emu.c b/platform/common/emu.c index a075abdf..b1927c12 100644 --- a/platform/common/emu.c +++ b/platform/common/emu.c @@ -1428,6 +1428,14 @@ void emu_loop(void) Pico.m.dirtyPal = 1; rendstatus_old = -1; + PicoLoopPrepare(); + + // prepare CD buffer + if (PicoAHW & PAHW_MCD) + PicoCDBufferInit(); + + pemu_loop_prep(); + /* number of ticks per frame */ if (Pico.m.pal) { target_fps = 50; @@ -1437,13 +1445,6 @@ void emu_loop(void) target_frametime = ms_to_ticks(1000) / 60 + 1; } - // prepare CD buffer - if (PicoAHW & PAHW_MCD) - PicoCDBufferInit(); - PicoLoopPrepare(); - - pemu_loop_prep(); - timestamp_fps = get_ticks(); reset_timing = 1; -- 2.39.5