aboutsummaryrefslogtreecommitdiff
path: root/source/cpuops.c
diff options
context:
space:
mode:
authoraliaspider2014-11-03 11:11:05 +0100
committeraliaspider2014-11-03 11:11:05 +0100
commit7077e9821593b2c9b78830c4cc5055c6a79cdd69 (patch)
tree615195d3db586f5542eddd0cbd17e46e816f954b /source/cpuops.c
parent3564bfe8134ce6e1294a59212484e9ee487ab4f5 (diff)
downloadsnes9x2005-7077e9821593b2c9b78830c4cc5055c6a79cdd69.tar.gz
snes9x2005-7077e9821593b2c9b78830c4cc5055c6a79cdd69.tar.bz2
snes9x2005-7077e9821593b2c9b78830c4cc5055c6a79cdd69.zip
can build with USE_BLARGG_APU enabled, still not working.
Diffstat (limited to 'source/cpuops.c')
-rw-r--r--source/cpuops.c4
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
{