mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 01:35:07 +00:00
prevent saving unsupported systems to .dmf
This commit is contained in:
parent
0b352ecd9a
commit
11cf0dc560
1 changed files with 8 additions and 2 deletions
|
@ -1772,8 +1772,8 @@ SafeWriter* DivEngine::saveFur() {
|
||||||
SafeWriter* DivEngine::saveDMF() {
|
SafeWriter* DivEngine::saveDMF() {
|
||||||
// fail if more than one system
|
// fail if more than one system
|
||||||
if (song.systemLen!=1) {
|
if (song.systemLen!=1) {
|
||||||
logE("cannot save multiple systems in this format!\n");
|
logE("cannot save multiple platforms in this format!\n");
|
||||||
lastError="multiple systems not possible on .dmf";
|
lastError="multiple platforms not possible on .dmf";
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
// fail if this is an YMU759 song
|
// fail if this is an YMU759 song
|
||||||
|
@ -1782,6 +1782,12 @@ SafeWriter* DivEngine::saveDMF() {
|
||||||
lastError="YMU759 song saving is not supported";
|
lastError="YMU759 song saving is not supported";
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
// fail if the system is Furnace-exclusive
|
||||||
|
if (systemToFile(song.system[0])&0x80) {
|
||||||
|
logE("cannot save Furnace-exclusive platform song!\n");
|
||||||
|
lastError="this platform is not possible on .dmf";
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
SafeWriter* w=new SafeWriter;
|
SafeWriter* w=new SafeWriter;
|
||||||
w->init();
|
w->init();
|
||||||
|
|
Loading…
Reference in a new issue