From 95b51e630727a62c4840b8461ab95f6f1b2b11f7 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 22 Jun 2023 15:45:27 -0500 Subject: [PATCH] VGM export: NES DPCM, part 3 dual chip --- src/engine/vgmOps.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/vgmOps.cpp b/src/engine/vgmOps.cpp index 5f6cdeebe..7a3fa9486 100644 --- a/src/engine/vgmOps.cpp +++ b/src/engine/vgmOps.cpp @@ -583,7 +583,7 @@ void DivEngine::performVGMWrite(SafeWriter* w, DivSystem sys, DivRegWrite& write unsigned int bankAddr=bankOffset+(write.val<<14); w->writeC(0x68); w->writeC(0x6c); - w->writeC(0x07); + w->writeC(0x07|(isSecond?0x80:0x00)); w->writeC(bankAddr&0xff); w->writeC((bankAddr>>8)&0xff); w->writeC((bankAddr>>16)&0xff); @@ -2017,7 +2017,7 @@ SafeWriter* DivEngine::saveVGM(bool* sysToExport, bool loop, int version, bool p // force the first bank w->writeC(0x68); w->writeC(0x6c); - w->writeC(0x07); + w->writeC(0x07|(i?0x80:0x00)); w->writeC(bankOffsetNES[i]&0xff); w->writeC((bankOffsetNES[i]>>8)&0xff); w->writeC((bankOffsetNES[i]>>16)&0xff);