aboutsummaryrefslogtreecommitdiff
path: root/source/cpuops.c
diff options
context:
space:
mode:
authorJoão Silva2017-01-15 01:56:01 +0000
committerJoão Silva2017-01-15 01:56:01 +0000
commitf1ca19db63461fd36a5739b0b7bd172185811d50 (patch)
tree87330b0cb53dd4302071999a312c712672466550 /source/cpuops.c
parentbc7474392a91fa9838e6ecb5b16ccebdd97ab9ec (diff)
downloadsnesemu-f1ca19db63461fd36a5739b0b7bd172185811d50.tar.gz
snesemu-f1ca19db63461fd36a5739b0b7bd172185811d50.tar.bz2
snesemu-f1ca19db63461fd36a5739b0b7bd172185811d50.zip
Fixed build with Blargg's APU.
Diffstat (limited to 'source/cpuops.c')
-rw-r--r--source/cpuops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/cpuops.c b/source/cpuops.c
index 302a17f..c640763 100644
--- a/source/cpuops.c
+++ b/source/cpuops.c
@@ -3187,6 +3187,7 @@ static inline void ForceShutdown()
#ifdef CPU_SHUTDOWN
#ifndef SA1_OPCODES
CPU.WaitAddress = NULL;
+#ifndef USE_BLARGG_APU
CPU.Cycles = CPU.NextEvent;
if (IAPU.APUExecuting)
{
@@ -3197,6 +3198,7 @@ static inline void ForceShutdown()
} while (APU.Cycles < CPU.NextEvent);
ICPU.CPUExecuting = true;
}
+#endif
#else
SA1.Executing = false;
SA1.CPUExecuting = false;