From c778251f262b361dfaafc15e880495633f41e279 Mon Sep 17 00:00:00 2001 From: cam900 Date: Sat, 12 Mar 2022 23:39:38 +0900 Subject: [PATCH] Oops! It's already exists --- src/engine/vgmOps.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/engine/vgmOps.cpp b/src/engine/vgmOps.cpp index 2518b9faa..6133fff62 100644 --- a/src/engine/vgmOps.cpp +++ b/src/engine/vgmOps.cpp @@ -509,7 +509,6 @@ SafeWriter* DivEngine::saveVGM(bool* sysToExport, bool loop) { int hasOPM=0; int hasSegaPCM=0; int segaPCMOffset=0xf8000d; - int hasX1010=0; int hasRFC=0; int hasOPN=0; int hasOPNA=0; @@ -666,14 +665,14 @@ SafeWriter* DivEngine::saveVGM(bool* sysToExport, bool loop) { } break; case DIV_SYSTEM_X1_010: - if (!hasX1010) { - hasX1010=disCont[i].dispatch->chipClock; + if (!hasX1) { + hasX1=disCont[i].dispatch->chipClock; willExport[i]=true; writeX1010=true; - } else if (!(hasX1010&0x40000000)) { + } else if (!(hasX1&0x40000000)) { isSecond[i]=true; willExport[i]=true; - hasX1010|=0x40000000; + hasX1|=0x40000000; howManyChips++; } break;