mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Fix namespaces
This commit is contained in:
1 parent
8a1b302e48
commit
625fff4b73
2 files changed
+2
-6
No files matched your search
-3
@@ -1,7 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Artemis.Core.Services;
|
||||
|
||||
namespace Artemis.Core.Modules;
|
||||
|
||||
@@ -3,7 +3,6 @@ using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using System.Threading;
|
||||
|
||||
namespace Artemis.Core.Services;
|
||||
@@ -115,7 +114,7 @@ public static partial class ProcessMonitor
|
||||
|
||||
lock (LOCK)
|
||||
{
|
||||
return _processes.Values.Any(x => Match(x, processName, processLocation));
|
||||
return _processes.Values.Any(x => IsProcessRunning(x, processName, processLocation));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -132,7 +131,7 @@ public static partial class ProcessMonitor
|
||||
}
|
||||
}
|
||||
|
||||
private static bool Match(ProcessInfo info, string? processName, string? processLocation)
|
||||
private static bool IsProcessRunning(ProcessInfo info, string? processName, string? processLocation)
|
||||
{
|
||||
if (processName != null && processLocation != null)
|
||||
return string.Equals(info.ProcessName, processName, StringComparison.InvariantCultureIgnoreCase) &&
|
||||
|
||||
Reference in new issue
Block a user