mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-12 13:28:33 +00:00
Fix namespaces
This commit is contained in:
parent
8a1b302e48
commit
625fff4b73
@ -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) &&
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user