mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-24 05:25:12 +00:00
fix version 9 .dmp -_-
This commit is contained in:
parent
5ff1c9d70d
commit
82ae2bf877
1 changed files with 7 additions and 1 deletions
|
@ -261,7 +261,13 @@ std::vector<DivInstrument*> DivEngine::instrumentFromFile(const char* path) {
|
|||
logD("reading FM data...\n");
|
||||
if (version<10) {
|
||||
if (version>1) {
|
||||
ins->fm.ops=reader.readC()?4:2;
|
||||
// bullcrap! no way to determine the instrument type other than a vague FM/STD!
|
||||
if (reader.size()==51) {
|
||||
reader.readC();
|
||||
ins->fm.ops=4;
|
||||
} else {
|
||||
ins->fm.ops=reader.readC()?4:2;
|
||||
}
|
||||
} else {
|
||||
ins->fm.ops=reader.readC()?2:4;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue