Merge pull request #284 from cam900/vgm_hasx1

Fix X1-010 VGM actually
This commit is contained in:
tildearrow 2022-03-12 12:39:33 -05:00 committed by GitHub
commit a238f5acf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -509,7 +509,6 @@ SafeWriter* DivEngine::saveVGM(bool* sysToExport, bool loop) {
int hasOPM=0; int hasOPM=0;
int hasSegaPCM=0; int hasSegaPCM=0;
int segaPCMOffset=0xf8000d; int segaPCMOffset=0xf8000d;
int hasX1010=0;
int hasRFC=0; int hasRFC=0;
int hasOPN=0; int hasOPN=0;
int hasOPNA=0; int hasOPNA=0;
@ -666,14 +665,14 @@ SafeWriter* DivEngine::saveVGM(bool* sysToExport, bool loop) {
} }
break; break;
case DIV_SYSTEM_X1_010: case DIV_SYSTEM_X1_010:
if (!hasX1010) { if (!hasX1) {
hasX1010=disCont[i].dispatch->chipClock; hasX1=disCont[i].dispatch->chipClock;
willExport[i]=true; willExport[i]=true;
writeX1010=true; writeX1010=true;
} else if (!(hasX1010&0x40000000)) { } else if (!(hasX1&0x40000000)) {
isSecond[i]=true; isSecond[i]=true;
willExport[i]=true; willExport[i]=true;
hasX1010|=0x40000000; hasX1|=0x40000000;
howManyChips++; howManyChips++;
} }
break; break;