SNES: pre-dev118 gain hotfix

This commit is contained in:
tildearrow 2022-09-29 04:39:31 -05:00
parent 0acca7458d
commit 3b28549885

View file

@ -1258,8 +1258,14 @@ 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();
if (version<118) {
// why why why
reader.readC();
reader.readC();
} else {
snes.gainMode=(DivInstrumentSNES::GainMode)reader.readC();
snes.gain=reader.readC();
}
snes.a=reader.readC();
snes.d=reader.readC();
snes.s=reader.readC();