diff options
author | aliaspider | 2014-11-03 11:11:05 +0100 |
---|---|---|
committer | aliaspider | 2014-11-03 11:11:05 +0100 |
commit | 7077e9821593b2c9b78830c4cc5055c6a79cdd69 (patch) | |
tree | 615195d3db586f5542eddd0cbd17e46e816f954b /source/cpuops.c | |
parent | 3564bfe8134ce6e1294a59212484e9ee487ab4f5 (diff) | |
download | snesemu-7077e9821593b2c9b78830c4cc5055c6a79cdd69.tar.gz snesemu-7077e9821593b2c9b78830c4cc5055c6a79cdd69.tar.bz2 snesemu-7077e9821593b2c9b78830c4cc5055c6a79cdd69.zip |
can build with USE_BLARGG_APU enabled, still not working.
Diffstat (limited to 'source/cpuops.c')
-rw-r--r-- | source/cpuops.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |