From eb4ecd6827d8dc56e9e68a03c13ab07fb79dc12d Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 3 Oct 2024 12:20:41 -0500 Subject: [PATCH] SID3: fix filter macro saving --- src/engine/instrument.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/engine/instrument.cpp b/src/engine/instrument.cpp index 3bb00e9ac..c3cb3338d 100644 --- a/src/engine/instrument.cpp +++ b/src/engine/instrument.cpp @@ -1420,8 +1420,6 @@ void DivInstrument::putInsData2(SafeWriter* w, bool fui, const DivSong* song, bo featureS2=true; break; case DIV_INS_SID3: - feature64=true; - featureS2=true; featureS3=true; break; case DIV_INS_SUPERVISION: @@ -1527,7 +1525,7 @@ void DivInstrument::putInsData2(SafeWriter* w, bool fui, const DivSong* song, bo } } - if (featureFM || !fui) { + if (featureFM || featureS3 || !fui) { // check FM macros int opCount=4; bool storeExtendedAsWell=true; @@ -2539,7 +2537,7 @@ void DivInstrument::readFeatureS3(SafeReader& reader, short version) { for (int i=0; i=4) break; - + next=reader.readC(); sid3.filt[i].enabled=next&0x80;