Changes for #170
This commit is contained in:
@@ -1971,6 +1971,8 @@ Public Class frmMain
|
|||||||
StopScan()
|
StopScan()
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
GC.Collect()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub bwMonitor_DoWork(sender As System.Object, e As System.ComponentModel.DoWorkEventArgs) Handles bwMonitor.DoWork
|
Private Sub bwMonitor_DoWork(sender As System.Object, e As System.ComponentModel.DoWorkEventArgs) Handles bwMonitor.DoWork
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ Public Class mgrProcessDetection
|
|||||||
Private oDuplicateGames As New ArrayList
|
Private oDuplicateGames As New ArrayList
|
||||||
Private bDuplicates As Boolean
|
Private bDuplicates As Boolean
|
||||||
Private bVerified As Boolean = False
|
Private bVerified As Boolean = False
|
||||||
|
Private oRegEx As Regex
|
||||||
|
|
||||||
Property FoundProcess As Process
|
Property FoundProcess As Process
|
||||||
Get
|
Get
|
||||||
@@ -143,7 +144,8 @@ Public Class mgrProcessDetection
|
|||||||
Private Function IsMatch(ByRef oGame As clsGame, ByRef sProcessCheck As String) As Boolean
|
Private Function IsMatch(ByRef oGame As clsGame, ByRef sProcessCheck As String) As Boolean
|
||||||
If oGame.IsRegEx Then
|
If oGame.IsRegEx Then
|
||||||
Try
|
Try
|
||||||
If Regex.IsMatch(sProcessCheck, oGame.ProcessName) Then
|
oRegEx = New Regex(oGame.ProcessName)
|
||||||
|
If oRegEx.IsMatch(sProcessCheck) Then
|
||||||
Return True
|
Return True
|
||||||
End If
|
End If
|
||||||
Catch
|
Catch
|
||||||
|
|||||||
Reference in New Issue
Block a user