From 35ceea878f126a2a6bfe0752e2b77fa498db394a Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Thu, 7 Mar 2024 14:12:20 +0100 Subject: [PATCH] Brightness fallback --- app/Display/ScreenControl.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Display/ScreenControl.cs b/app/Display/ScreenControl.cs index 5c1ac495..198741e6 100644 --- a/app/Display/ScreenControl.cs +++ b/app/Display/ScreenControl.cs @@ -28,7 +28,8 @@ namespace GHelper.Display if (isSplenddid) { var result = ProcessHelper.RunCMD(splendid, (isGameVisual ? 19 : 9) + " 0 " + (40 + _brightness * 0.6)); - if (!result.Contains("file not exist")) return; + bool fail = result.Contains("file not exist") || (result.Length == 0 && isGameVisual); + if (!fail) return; } // GammaRamp Fallback