mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fixed bad LINQ expression
This commit is contained in:
parent
fa51cd4d69
commit
750dd6f7aa
@ -29,7 +29,7 @@ namespace Wabbajack.Common
|
||||
public static bool IsMO2Running(string mo2Path)
|
||||
{
|
||||
Process[] processList = Process.GetProcesses();
|
||||
return processList.Select(process => (process.ProcessName == "ModOrganizer" && Path.GetDirectoryName(process.MainModule?.FileName) == mo2Path)).FirstOrDefault();
|
||||
return processList.Where(process => process.ProcessName == "ModOrganizer").Any(process => Path.GetDirectoryName(process.MainModule?.FileName) == mo2Path);
|
||||
}
|
||||
|
||||
public static string LogFile { get; private set; }
|
||||
|
Loading…
Reference in New Issue
Block a user