Fixed broken process debugging

This commit is contained in:
MikeMaximus
2018-10-09 20:43:28 -06:00
parent 58e4c3f3f2
commit b7d62f38af
+4 -5
View File
@@ -256,7 +256,6 @@ Public Class mgrProcessDetection
Dim oDetectedGames As New ArrayList Dim oDetectedGames As New ArrayList
For Each prsCurrent As Process In prsList For Each prsCurrent As Process In prsList
'This needs to be wrapped due to issues with Mono. 'This needs to be wrapped due to issues with Mono.
Try Try
sProcessCheck = prsCurrent.ProcessName sProcessCheck = prsCurrent.ProcessName
@@ -277,9 +276,9 @@ Public Class mgrProcessDetection
End If End If
If bDebugMode And mgrCommon.IsUnix Then If bDebugMode And mgrCommon.IsUnix Then
sProcessList &= prsCurrent.Id & " " & prsCurrent.ProcessName & " " & GetUnixProcessArguments(prsCurrent)(0) & vbCrLf sProcessList &= prsCurrent.Id & " " & prsCurrent.ProcessName & " " & GetUnixCommand(prsCurrent) & vbCrLf
ElseIf bDebugMode Then ElseIf bDebugMode Then
sProcessList &= prsCurrent.Id & " " & prsCurrent.ProcessName & vbCrLf sProcessList &= prsCurrent.Id & " " & prsCurrent.ProcessName & " " & GetWindowsCommand(prsCurrent) & vbCrLf
End If End If
Catch ex As Exception Catch ex As Exception
'Do Nothing 'Do Nothing
@@ -322,8 +321,6 @@ Public Class mgrProcessDetection
End Try End Try
End If End If
If bDebugMode Then mgrCommon.SaveText(sProcessList, mgrPath.SettingsRoot & "/gbm_process_list.txt")
'This will force two cycles for detection to try and prevent issues with UAC prompt 'This will force two cycles for detection to try and prevent issues with UAC prompt
If Not bVerified Then If Not bVerified Then
bVerified = True bVerified = True
@@ -335,6 +332,8 @@ Public Class mgrProcessDetection
End If End If
Next Next
If bDebugMode Then mgrCommon.SaveText(sProcessList, mgrPath.SettingsRoot & "/gbm_process_list.txt")
Return False Return False
End Function End Function