From 0184e46022719243cedbd481b44271378aa089bd Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 16 Apr 2019 22:22:12 -0500 Subject: [PATCH] Make sure GetConfig returns a valid stub SMXConfig if the DLL isn't present. --- smx-config/SMX.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/smx-config/SMX.cs b/smx-config/SMX.cs index c38752d..5e4d84b 100644 --- a/smx-config/SMX.cs +++ b/smx-config/SMX.cs @@ -487,11 +487,10 @@ namespace SMX public static bool GetConfig(int pad, out SMXConfig config) { if(!DLLAvailable()) { - config = new SMXConfig(); - config.enabledSensors = new Byte[5]; - config.stepColor = new Byte[3*9]; + config = SMXConfig.Create(); return false; } + return SMX_GetConfig(pad, out config); }