SNES: pre-dev118 gain hotfix

This commit is contained in:
tildearrow 2022-09-29 04:39:31 -05:00
parent 0acca7458d
commit 3b28549885
1 changed files with 8 additions and 2 deletions

View File

@ -1258,8 +1258,14 @@ DivDataErrors DivInstrument::readInsData(SafeReader& reader, short version) {
// SNES // SNES
if (version>=109) { if (version>=109) {
snes.useEnv=reader.readC(); snes.useEnv=reader.readC();
snes.gainMode=(DivInstrumentSNES::GainMode)reader.readC(); if (version<118) {
snes.gain=reader.readC(); // why why why
reader.readC();
reader.readC();
} else {
snes.gainMode=(DivInstrumentSNES::GainMode)reader.readC();
snes.gain=reader.readC();
}
snes.a=reader.readC(); snes.a=reader.readC();
snes.d=reader.readC(); snes.d=reader.readC();
snes.s=reader.readC(); snes.s=reader.readC();