From ebfe3b149b3c620de522890166b02c175580ed96 Mon Sep 17 00:00:00 2001 From: RndMnkIII Date: Wed, 5 Feb 2025 16:05:17 +0100 Subject: [PATCH] fixed file path for analogizer.bin configuration file. Added minor cosmetic changes. (#390) --- src/services/AnalogizerSettingsService.cs | 27 ++++++++++++----------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/services/AnalogizerSettingsService.cs b/src/services/AnalogizerSettingsService.cs index 8cd2e5b..3420ba6 100644 --- a/src/services/AnalogizerSettingsService.cs +++ b/src/services/AnalogizerSettingsService.cs @@ -41,14 +41,7 @@ class AnalogizerSettingsService #.....#.#. ##.#.....#.#. #. #.#. #. #. #. #. #. #. #. #.#. #.#. #.#. #. #. #. #. #. #. #. #. # #. #.#. #.#. #.####### ####. #######. #### ####### ####### #. # -===================== C O N F I G U R A T O R V 0.2 ========================="; - static readonly Dictionary MenuOptions = new Dictionary - { - {1, "SNAC game controller options"}, - {2, "Video output options"}, - {3, "Miscellaneous options"}, - {4, "Save and Exit"} - }; +===================== C O N F I G U R A T O R V 0.3 ========================="; static readonly Dictionary VideoOutputOptions = new Dictionary { @@ -98,8 +91,8 @@ class AnalogizerSettingsService static readonly Dictionary PocketBlankScreenOptions = new Dictionary { - {1, "No video output on the Pocket screen"}, - {0, "Video is show on the Pocket screen"} + {0, "Video is show on the Pocket screen"}, + {1, "No video output on the Pocket screen"} }; static readonly Dictionary AnalogizerOSDOptions = new Dictionary @@ -107,6 +100,7 @@ class AnalogizerSettingsService {1, "OSD is show on Analogizer video output (when avalaible)"}, {0, "OSD is show on Pocket screen (when avalaible)"} }; + static void FlushKeyboard() { while (Console.In.Peek() != -1) @@ -276,8 +270,15 @@ public static void ShowWizard() } case 2: { - //SNAC game controller options - SnacAssigmentsOptions(); + if(snacSelection == 0) //If none SNAC controller is selected, bypass assigment + { + snacAssigmentSelection = 0; + } + else + { + //SNAC game controller options + SnacAssigmentsOptions(); + } menuDone++; break; } @@ -318,7 +319,7 @@ public static void ShowWizard() if (File.Exists(filepath)) { - string destination = Path.Combine(ServiceHelper.UpdateDirectory, "Assets", "Analogizer", "common"); + string destination = Path.Combine(ServiceHelper.UpdateDirectory, "Assets", "analogizer", "common"); if (!Directory.Exists(destination)) {