more cat and mouse
This commit is contained in:
parent
d2204100f0
commit
012108975f
|
|
@ -1897,7 +1897,7 @@ std::vector<DivInstrument*> DivEngine::instrumentFromFile(const char* path, bool
|
||||||
bool isOldFurnaceIns=false;
|
bool isOldFurnaceIns=false;
|
||||||
try {
|
try {
|
||||||
reader.read(magic,4);
|
reader.read(magic,4);
|
||||||
if (memcmp("FINS",magic,4)==0) {
|
if (memcmp("FINS",magic,4)==0 || memcmp("FINB",magic,4)==0) {
|
||||||
isFurnaceInstr=true;
|
isFurnaceInstr=true;
|
||||||
logV("found a new Furnace ins");
|
logV("found a new Furnace ins");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -3005,6 +3005,8 @@ DivDataErrors DivInstrument::readInsData(SafeReader& reader, short version, DivS
|
||||||
type=1;
|
type=1;
|
||||||
} else if (memcmp(magic,"FINS",4)==0) {
|
} else if (memcmp(magic,"FINS",4)==0) {
|
||||||
type=2;
|
type=2;
|
||||||
|
} else if (memcmp(magic,"FINB",4)==0) { // DIV_FUR_VARIANT_B
|
||||||
|
type=2;
|
||||||
} else {
|
} else {
|
||||||
logE("invalid instrument header!");
|
logE("invalid instrument header!");
|
||||||
return DIV_DATA_INVALID_HEADER;
|
return DIV_DATA_INVALID_HEADER;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue