From: notaz Date: Tue, 1 Jun 2010 14:02:15 +0000 (+0000) Subject: fix emuloop init to use correct pal value X-Git-Tag: v1.85~181 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46bcb899714b81396c77b737da200b09b73f6c1a;p=picodrive.git fix emuloop init to use correct pal value git-svn-id: file:///home/notaz/opt/svn/PicoDrive@876 be3aeb3a-fb24-0410-a615-afba39da0efa --- 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;