mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-24 05:25:12 +00:00
add VGM export warnings
This commit is contained in:
parent
237ad1f517
commit
fe0dc38f37
2 changed files with 8 additions and 0 deletions
|
@ -2515,6 +2515,7 @@ SafeWriter* DivEngine::saveVGM(bool* sysToExport, bool loop) {
|
||||||
int loopEnd=0;
|
int loopEnd=0;
|
||||||
walkSong(loopOrder,loopRow,loopEnd);
|
walkSong(loopOrder,loopRow,loopEnd);
|
||||||
logI("loop point: %d %d\n",loopOrder,loopRow);
|
logI("loop point: %d %d\n",loopOrder,loopRow);
|
||||||
|
warnings="";
|
||||||
|
|
||||||
curOrder=0;
|
curOrder=0;
|
||||||
freelance=false;
|
freelance=false;
|
||||||
|
@ -2627,6 +2628,7 @@ SafeWriter* DivEngine::saveVGM(bool* sysToExport, bool loop) {
|
||||||
willExport[i]=true;
|
willExport[i]=true;
|
||||||
hasOPN2|=0x40000000;
|
hasOPN2|=0x40000000;
|
||||||
howManyChips++;
|
howManyChips++;
|
||||||
|
addWarning("adding a compound system two times is experimental!");
|
||||||
}
|
}
|
||||||
if (!hasSN) {
|
if (!hasSN) {
|
||||||
hasSN=3579545;
|
hasSN=3579545;
|
||||||
|
@ -2636,6 +2638,7 @@ SafeWriter* DivEngine::saveVGM(bool* sysToExport, bool loop) {
|
||||||
willExport[i]=true;
|
willExport[i]=true;
|
||||||
hasSN|=0x40000000;
|
hasSN|=0x40000000;
|
||||||
howManyChips++;
|
howManyChips++;
|
||||||
|
addWarning("adding a compound system two times is experimental!");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DIV_SYSTEM_SMS:
|
case DIV_SYSTEM_SMS:
|
||||||
|
@ -2693,6 +2696,7 @@ SafeWriter* DivEngine::saveVGM(bool* sysToExport, bool loop) {
|
||||||
willExport[i]=true;
|
willExport[i]=true;
|
||||||
hasOPM|=0x40000000;
|
hasOPM|=0x40000000;
|
||||||
howManyChips++;
|
howManyChips++;
|
||||||
|
addWarning("adding a compound system two times is experimental!");
|
||||||
}
|
}
|
||||||
if (!hasSegaPCM) {
|
if (!hasSegaPCM) {
|
||||||
hasSegaPCM=4000000;
|
hasSegaPCM=4000000;
|
||||||
|
@ -2703,6 +2707,7 @@ SafeWriter* DivEngine::saveVGM(bool* sysToExport, bool loop) {
|
||||||
willExport[i]=true;
|
willExport[i]=true;
|
||||||
hasSegaPCM|=0x40000000;
|
hasSegaPCM|=0x40000000;
|
||||||
howManyChips++;
|
howManyChips++;
|
||||||
|
addWarning("adding a compound system two times is experimental!");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DIV_SYSTEM_YM2610:
|
case DIV_SYSTEM_YM2610:
|
||||||
|
|
|
@ -5043,6 +5043,9 @@ bool FurnaceGUI::loop() {
|
||||||
}
|
}
|
||||||
w->finish();
|
w->finish();
|
||||||
delete w;
|
delete w;
|
||||||
|
if (!e->getWarnings().empty()) {
|
||||||
|
showWarning(e->getWarnings(),GUI_WARN_GENERIC);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
showError("could not write VGM. dang it.");
|
showError("could not write VGM. dang it.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue