Skip to content

Commit

Permalink
Merge pull request #86 from ranc1/main
Browse files Browse the repository at this point in the history
Skip process sampling when process Id is processId is provided
  • Loading branch information
Viir committed Apr 3, 2024
2 parents 2755eb5 + b2dc44e commit 567ca82
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions implement/read-memory-64-bit/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,9 @@ static int Main(string[] args)
{
if (processId.HasValue)
{
if (0 < rootAddressArgument?.Length)
{
return (new MemoryReaderFromLiveProcess(processId.Value), ImmutableList.Create(ParseULong(rootAddressArgument)));
}
var possibleRootAddresses = 0 < rootAddressArgument?.Length ? ImmutableList.Create(ParseULong(rootAddressArgument)) : EveOnline64.EnumeratePossibleAddressesForUIRootObjectsFromProcessId(processId.Value);
return GetMemoryReaderAndRootAddressesFromProcessSampleFile(GetProcessSampleFileFromProcessId(processId.Value));
return (new MemoryReaderFromLiveProcess(processId.Value), possibleRootAddresses);
}
if (!(0 < sourceFileArgument?.Length))
Expand Down

0 comments on commit 567ca82

Please sign in to comment.