aboutsummaryrefslogtreecommitdiff
path: root/source/ppu.c
diff options
context:
space:
mode:
authoraliaspider2014-11-03 11:11:05 +0100
committeraliaspider2014-11-03 11:11:05 +0100
commit7077e9821593b2c9b78830c4cc5055c6a79cdd69 (patch)
tree615195d3db586f5542eddd0cbd17e46e816f954b /source/ppu.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/ppu.c')
-rw-r--r--source/ppu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/ppu.c b/source/ppu.c
index 181fdaf..bc28114 100644
--- a/source/ppu.c
+++ b/source/ppu.c
@@ -886,6 +886,7 @@ void S9xSetPPU(uint8 Byte, uint16 Address)
case 0x217d:
case 0x217e:
case 0x217f:
+#ifndef USE_BLARGG_APU
#ifdef SPCTOOL
_SPCInPB(Address & 3, Byte);
#else
@@ -897,6 +898,7 @@ void S9xSetPPU(uint8 Byte, uint16 Address)
IAPU.WaitCounter++;
#endif
#endif // SPCTOOL
+#endif // #ifndef USE_BLARGG_APU
break;
case 0x2180:
REGISTER_2180(Byte);
@@ -1269,6 +1271,7 @@ uint8 S9xGetPPU(uint16 Address)
case 0x217d:
case 0x217e:
case 0x217f:
+#ifndef USE_BLARGG_APU
#ifdef SPCTOOL
return ((uint8) _SPCOutP [Address & 3]);
#else
@@ -1291,7 +1294,7 @@ uint8 S9xGetPPU(uint16 Address)
return (APU.OutPorts [Address & 3]);
}
-
+#endif
switch (Settings.SoundSkipMethod)
{
case 0: