From 151491c844416f06e0aad43aaab57d52f3b34efe Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Sat, 20 Jul 2024 13:39:37 +1000 Subject: [PATCH] Use an array for `Bk2Controller.ControlsOrdered` --- src/BizHawk.Client.Common/movie/bk2/Bk2Controller.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/BizHawk.Client.Common/movie/bk2/Bk2Controller.cs b/src/BizHawk.Client.Common/movie/bk2/Bk2Controller.cs index 7865c2da98..0870a721d6 100755 --- a/src/BizHawk.Client.Common/movie/bk2/Bk2Controller.cs +++ b/src/BizHawk.Client.Common/movie/bk2/Bk2Controller.cs @@ -14,11 +14,11 @@ namespace BizHawk.Client.Common private readonly Bk2ControllerDefinition _type; - private IList _controlsOrdered; + private IReadOnlyList _controlsOrdered; - private IList ControlsOrdered => _controlsOrdered ??= _type.OrderedControlsFlat - .Select(name => new ControlMap(name, _type)) - .ToList(); + private IReadOnlyList ControlsOrdered + => _controlsOrdered + ??= _type.OrderedControlsFlat.Select(name => new ControlMap(name, _type)).ToArray(); public IInputDisplayGenerator InputDisplayGenerator { get; set; } = null;