From c93ceae462c25dba3964453f8b254fa4e016c56c Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Sat, 7 May 2022 14:40:15 +1000 Subject: [PATCH] Fix typo in Snes9x sound settings bitfield (fixes #1208) --- .../Consoles/Nintendo/SNES9X/Snes9x.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/BizHawk.Emulation.Cores/Consoles/Nintendo/SNES9X/Snes9x.cs b/src/BizHawk.Emulation.Cores/Consoles/Nintendo/SNES9X/Snes9x.cs index 71f0cdf0c9..ff93db0439 100644 --- a/src/BizHawk.Emulation.Cores/Consoles/Nintendo/SNES9X/Snes9x.cs +++ b/src/BizHawk.Emulation.Cores/Consoles/Nintendo/SNES9X/Snes9x.cs @@ -273,14 +273,14 @@ namespace BizHawk.Emulation.Cores.Nintendo.SNES9X { _settings = o; int s = 0; - if (o.PlaySound0) s |= 1; - if (o.PlaySound0) s |= 2; - if (o.PlaySound0) s |= 4; - if (o.PlaySound0) s |= 8; - if (o.PlaySound0) s |= 16; - if (o.PlaySound0) s |= 32; - if (o.PlaySound0) s |= 64; - if (o.PlaySound0) s |= 128; + if (o.PlaySound0) s |= 0b1; + if (o.PlaySound1) s |= 0b10; + if (o.PlaySound2) s |= 0b100; + if (o.PlaySound3) s |= 0b1000; + if (o.PlaySound4) s |= 0b10000; + if (o.PlaySound5) s |= 0b100000; + if (o.PlaySound6) s |= 0b1000000; + if (o.PlaySound7) s |= 0b10000000; _core.biz_set_sound_channels(s); int l = 0; if (o.ShowBg0) l |= 1;