From 7077e9821593b2c9b78830c4cc5055c6a79cdd69 Mon Sep 17 00:00:00 2001 From: aliaspider Date: Mon, 3 Nov 2014 11:11:05 +0100 Subject: can build with USE_BLARGG_APU enabled, still not working. --- source/cpuops.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/cpuops.c') diff --git a/source/cpuops.c b/source/cpuops.c index 83b6910..f398e0c 100644 --- a/source/cpuops.c +++ b/source/cpuops.c @@ -3383,6 +3383,7 @@ static inline void CPUShutdown() CPU.WaitAddress = NULL; if (Settings.SA1) S9xSA1ExecuteDuringSleep(); +#ifndef USE_BLARGG_APU CPU.Cycles = CPU.NextEvent; if (IAPU.APUExecuting) { @@ -3394,6 +3395,7 @@ static inline void CPUShutdown() while (APU.Cycles < CPU.NextEvent); ICPU.CPUExecuting = TRUE; } +#endif } else if (CPU.WaitCounter >= 2) CPU.WaitCounter = 1; @@ -4980,6 +4982,7 @@ static void OpCB(void) if (Settings.Shutdown) { CPU.Cycles = CPU.NextEvent; +#ifndef USE_BLARGG_APU if (IAPU.APUExecuting) { ICPU.CPUExecuting = FALSE; @@ -4990,6 +4993,7 @@ static void OpCB(void) while (APU.Cycles < CPU.NextEvent); ICPU.CPUExecuting = TRUE; } +#endif } else { -- cgit v1.2.3