X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FPico.c;h=bb0f6e5b819a4c9a687a27d856d81685cfb8e3ef;hb=f8ef8ff7100baa0ac0ecfcacb47aea3a9e24bc38;hp=9ad226d66fe974910e8d3562bb79dca3055ce04e;hpb=f53f286a8b48d19c65e83f90d00aa47e8e87c889;p=picodrive.git diff --git a/Pico/Pico.c b/Pico/Pico.c index 9ad226d..bb0f6e5 100644 --- a/Pico/Pico.c +++ b/Pico/Pico.c @@ -17,7 +17,8 @@ int PicoSkipFrame=0; // skip rendering frame? int PicoRegionOverride = 0; // override the region detection 0: Auto, 1: Japan NTSC, 2: Japan PAL, 4: US, 8: Europe int PicoAutoRgnOrder = 0; int emustatus = 0; // rapid_ym2612, multi_ym_updates -void (*PicoWriteSound)(int len) = 0; // called once per frame at the best time to send sound buffer (PsndOut) to hardware +void (*PicoWriteSound)(int len) = NULL; // called at the best time to send sound buffer (PsndOut) to hardware +void (*PicoResetHook)(void) = NULL; struct PicoSRAM SRam = {0,}; int z80startCycle, z80stopCycle; // in 68k cycles @@ -139,6 +140,8 @@ int PicoReset(int hard) PsndReset(); // pal must be known here + if (PicoResetHook) PicoResetHook(); + if (PicoMCD & 1) { PicoResetMCD(hard); return 0;