Skip to content

Commit

Permalink
Fix some processes missing from "Attach to Process (Unity)" (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
rigdern authored Sep 13, 2023
1 parent 653fca2 commit 2cbd254
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public override IEnumerable<AttachProgramOptions> Create(AttachProgramOptionsPro
}
}

static readonly Regex playerAnnounceStringRegex = new Regex(@"^\[IP\] (\S+) \[Port\] (\d+) \[Flags\] (-?\d+) \[Guid\] (\d+) \[EditorId\] (\d+) \[Version\] (\d+) \[Id\] ([^\(]+)\(([^\)]+)\)(:(\d+))? \[Debug\] (\d+)");
static readonly Regex playerAnnounceStringRegex = new Regex(@"^\[IP\] (\S+) \[Port\] (\d+) \[Flags\] (-?\d+) \[Guid\] (\d+) \[EditorId\] (\d+) \[Version\] (\d+) \[Id\] ([^\(]+)\((?:\d+,)?([^\)]+)\)(:(\d+))? \[Debug\] (\d+)");
bool TryParseUnityPlayerData(string s, [NotNullWhen(true)] out string? ipAddress, out ushort port, [NotNullWhen(true)] out string? playerId) {
ipAddress = null;
port = 0;
Expand Down

0 comments on commit 2cbd254

Please sign in to comment.