diff --git a/src/engine/instrument.cpp b/src/engine/instrument.cpp index e509612d1..622c9b60f 100644 --- a/src/engine/instrument.cpp +++ b/src/engine/instrument.cpp @@ -1720,9 +1720,196 @@ void DivInstrument::putInsData(SafeWriter* w) { w->seek(0,SEEK_END); } -DivDataErrors DivInstrument::readInsDataNew(SafeReader& reader, short version, bool fui) { - logE("new ins reading not implemented yet!"); - return DIV_DATA_INVALID_DATA; +#define READ_FEAT_BEGIN \ + unsigned short featLen=reader.readS(); \ + size_t endOfFeat=reader.tell()+featLen; + +#define READ_FEAT_END \ + if (reader.tell()