Skip to content

Commit

Permalink
Merge pull request #41 from Fayti1703/patch-sc-onconnect
Browse files Browse the repository at this point in the history
Fix SCOnConnect patch
  • Loading branch information
Spartan322 authored Apr 15, 2020
2 parents 2773d9b + a07f725 commit abcd261
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Pathfinder/PathfinderHooks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,14 @@ public static bool onSCOnConnectCheck(SCOnConnect self, out bool retVal, ref Com
{
var os = (OS) objOS;

Console.WriteLine(computer);
if (!string.IsNullOrWhiteSpace(self.requiredFlags))
{
if (self.requiredFlags.Split(Utils.commaDelim, StringSplitOptions.RemoveEmptyEntries).Any(flag => !os.Flags.HasFlag(flag)))
{
retVal = false;
return true;
}
}

if (self.needsMissionComplete)
{
Expand Down

0 comments on commit abcd261

Please sign in to comment.