From 5afb6ca454b1042c6a762fac0445faf75a2a71b4 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Sun, 19 Jun 2022 09:43:40 +1000 Subject: [PATCH] Fix call order in `SMSControllerDeck` (fixes #3282) fixes 0719d6f9d --- .../Consoles/Sega/SMS/SMSControllerDeck.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/BizHawk.Emulation.Cores/Consoles/Sega/SMS/SMSControllerDeck.cs b/src/BizHawk.Emulation.Cores/Consoles/Sega/SMS/SMSControllerDeck.cs index 1222f60b51..ac46a247a0 100644 --- a/src/BizHawk.Emulation.Cores/Consoles/Sega/SMS/SMSControllerDeck.cs +++ b/src/BizHawk.Emulation.Cores/Consoles/Sega/SMS/SMSControllerDeck.cs @@ -23,7 +23,7 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem BoolButtons = new[] { "Reset" } .Concat(Port1.Definition.BoolButtons) .ToList() - }.MakeImmutable(); + }; } else { @@ -38,7 +38,7 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem .Concat(Port1.Definition.BoolButtons) .Concat(Port2.Definition.BoolButtons) .ToList() - }.MakeImmutable(); + }; } else { @@ -49,12 +49,13 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem .Concat(Port2.Definition.BoolButtons) .Concat(KeyboardMap) .ToList() - }.MakeImmutable(); + }; } foreach (var kvp in Port1.Definition.Axes) Definition.Axes.Add(kvp); foreach (var kvp in Port2.Definition.Axes) Definition.Axes.Add(kvp); - } + } + Definition.MakeImmutable(); } public byte ReadPort1_c1(IController c)