more cat and mouse

This commit is contained in:
tildearrow 2024-04-14 02:22:07 -05:00
parent d2204100f0
commit 012108975f
2 changed files with 3 additions and 1 deletions

View file

@ -1897,7 +1897,7 @@ std::vector<DivInstrument*> DivEngine::instrumentFromFile(const char* path, bool
bool isOldFurnaceIns=false;
try {
reader.read(magic,4);
if (memcmp("FINS",magic,4)==0) {
if (memcmp("FINS",magic,4)==0 || memcmp("FINB",magic,4)==0) {
isFurnaceInstr=true;
logV("found a new Furnace ins");
} else {

View file

@ -3005,6 +3005,8 @@ DivDataErrors DivInstrument::readInsData(SafeReader& reader, short version, DivS
type=1;
} else if (memcmp(magic,"FINS",4)==0) {
type=2;
} else if (memcmp(magic,"FINB",4)==0) { // DIV_FUR_VARIANT_B
type=2;
} else {
logE("invalid instrument header!");
return DIV_DATA_INVALID_HEADER;