From 849c376fb8aba57f766d722f9cee578ffa562037 Mon Sep 17 00:00:00 2001 From: Den Delimarsky <1389609+dend@users.noreply.github.com> Date: Fri, 23 Apr 2021 08:00:22 -0700 Subject: [PATCH] Update settings configuration --- src/modules/espresso/Espresso.Shell/Core/APIHelper.cs | 5 ++++- src/modules/espresso/Espresso.Shell/Program.cs | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/modules/espresso/Espresso.Shell/Core/APIHelper.cs b/src/modules/espresso/Espresso.Shell/Core/APIHelper.cs index 1b8931df37..879d0f2b27 100644 --- a/src/modules/espresso/Espresso.Shell/Core/APIHelper.cs +++ b/src/modules/espresso/Espresso.Shell/Core/APIHelper.cs @@ -33,7 +33,10 @@ namespace Espresso.Shell.Core { try { - bool stateSettingSucceeded = (SetThreadExecutionState(state) != 0); + var stateResult = SetThreadExecutionState(state); + bool stateSettingSucceeded = (stateResult != 0); + Console.WriteLine($"State setting result: {stateResult}"); + if (stateSettingSucceeded) { return true; diff --git a/src/modules/espresso/Espresso.Shell/Program.cs b/src/modules/espresso/Espresso.Shell/Program.cs index b6b1e213bf..bbe9b84f5f 100644 --- a/src/modules/espresso/Espresso.Shell/Program.cs +++ b/src/modules/espresso/Espresso.Shell/Program.cs @@ -239,7 +239,8 @@ namespace Espresso.Shell } catch (Exception ex) { - ForceExit($"There was a problem reading the configuration file.\n{ex.Message}", 1); + Console.WriteLine($"There was a problem reading the configuration file.\n{ex.Message}"); + //ForceExit($"There was a problem reading the configuration file.\n{ex.Message}", 1); } }