From fcb5bf0a68e2c567035a0ecfad9adac68ca40904 Mon Sep 17 00:00:00 2001 From: glax Date: Mon, 12 Feb 2024 01:22:46 +0100 Subject: [PATCH] Cleanup --- OpenCS2hock/Setup.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenCS2hock/Setup.cs b/OpenCS2hock/Setup.cs index 717160c..1d7a505 100644 --- a/OpenCS2hock/Setup.cs +++ b/OpenCS2hock/Setup.cs @@ -1,4 +1,6 @@ -using System.Text.RegularExpressions; +using System.Runtime.InteropServices; +using System.Runtime.Versioning; +using System.Text.RegularExpressions; using CShocker.Devices.Abstract; using CShocker.Devices.Additional; using CShocker.Devices.APIs; @@ -60,6 +62,7 @@ public static class Setup AddApisWorkflow(ref c); break; case ConsoleKey.D3: + // ReSharper disable once PossibleInvalidCastExceptionInForeachLoop Only returning OpenShockApi Objects foreach (OpenShockApi api in c.Apis.Where(a => a is OpenShockApi)) { Configuration configuration = c;