Merge branch 'snes' of https://github.com/akumanatt/furnace into akumanatt-snes

This commit is contained in:
tildearrow 2022-09-24 02:53:11 -05:00
commit c0de45ff0c
19 changed files with 2616 additions and 70 deletions

View file

@ -559,9 +559,10 @@ void DivInstrument::putInsData(SafeWriter* w) {
w->writeC(es5506.envelope.k2Slow);
// SNES
// @tildearrow please update this
w->writeC(snes.useEnv);
w->writeC(snes.gainMode);
w->writeC(snes.gain);
w->writeC(0);
w->writeC(0);
w->writeC(snes.a);
w->writeC(snes.d);
w->writeC(snes.s);
@ -1258,8 +1259,8 @@ DivDataErrors DivInstrument::readInsData(SafeReader& reader, short version) {
// SNES
if (version>=109) {
snes.useEnv=reader.readC();
snes.gainMode=(DivInstrumentSNES::GainMode)reader.readC();
snes.gain=reader.readC();
reader.readC();
reader.readC();
snes.a=reader.readC();
snes.d=reader.readC();
snes.s=reader.readC();