From ffbcdb21b361bb91a03c370459836eb708861fb1 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Thu, 26 Jul 2018 02:42:28 -0500 Subject: [PATCH] More edits to program entry file --- DS4Windows/Program.cs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/DS4Windows/Program.cs b/DS4Windows/Program.cs index 9c1fb62..e41eba1 100644 --- a/DS4Windows/Program.cs +++ b/DS4Windows/Program.cs @@ -2,7 +2,7 @@ using System.Windows.Forms; using System.Threading; using System.Runtime.InteropServices; -using System.Diagnostics; +using Process = System.Diagnostics.Process; using System.ComponentModel; using System.Globalization; using System.Runtime; @@ -73,13 +73,10 @@ namespace DS4Windows try { - Process.GetCurrentProcess().PriorityClass = - ProcessPriorityClass.High; - } - catch - { - // Ignore problems raising the priority. + Process.GetCurrentProcess().PriorityClass = + System.Diagnostics.ProcessPriorityClass.High; } + catch { } // Ignore problems raising the priority. try { @@ -89,7 +86,7 @@ namespace DS4Windows threadComEvent.Close(); return; // return immediatly. } - catch { /* don't care about errors */ } + catch { /* don't care about errors */ } // Create the Event handle threadComEvent = new EventWaitHandle(false, EventResetMode.ManualReset, SingleAppComEventName);