X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=Pico%2Fsound%2Fym2612.c;h=754f496995a737dc71b5c97930adc053e490dbd6;hb=f58f05d28a40e783a6159186d01dbfe67cdc0728;hp=3c3b17e69afb1f52d8972b22ef5e82989847a43f;hpb=cea6590346640236914eeff840401c55db8a77ce;p=picodrive.git diff --git a/Pico/sound/ym2612.c b/Pico/sound/ym2612.c index 3c3b17e..754f496 100644 --- a/Pico/sound/ym2612.c +++ b/Pico/sound/ym2612.c @@ -1702,7 +1702,9 @@ int YM2612Write_(unsigned int a, unsigned int v) } addr = ym2612.OPN.ST.address; +#ifndef EXTERNAL_YM2612 ym2612.REGS[addr] = v; +#endif switch( addr & 0xf0 ) { @@ -1800,7 +1802,9 @@ int YM2612Write_(unsigned int a, unsigned int v) } addr = ym2612.OPN.ST.address | 0x100; +#ifndef EXTERNAL_YM2612 ym2612.REGS[addr] = v; +#endif ret = OPNWriteReg(addr, v); break; @@ -1869,7 +1873,10 @@ void YM2612PicoStateLoad_(void) } +#ifndef EXTERNAL_YM2612 void *YM2612GetRegs(void) { return ym2612.REGS; } +#endif +