Detection rewrite for issue #153 - Pass 2

This commit is contained in:
MikeMaximus
2018-09-03 15:57:01 -06:00
parent 63da6eba19
commit 7ca4178631
3 changed files with 36 additions and 16 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ Public Class frmChooseGame
End Sub
Private Sub SaveSelection()
oGame.ProcessPath = oProcess.GameInfo.ProcessPath
oGame.ProcessPath = oProcess.ProcessPath
mgrMonitorList.DoListUpdate(oGame)
End Sub
-5
View File
@@ -266,14 +266,9 @@ Public Class frmMain
frm.Process = oProcess
oResult = frm.ShowDialog()
If oResult = DialogResult.OK Then
Dim sProcessPath As String
'Reload settings
LoadGameSettings()
'Retain the process path from old object
sProcessPath = oProcess.GameInfo.ProcessPath
oProcess.GameInfo = frm.Game
'Set the process path into the new object
oProcess.GameInfo.ProcessPath = sProcessPath
'A game was set, return and continue
Return True
Else