Fixed issue 23
This commit is contained in:
@@ -163,6 +163,7 @@ Public Class frmMain
|
|||||||
Dim oGame As clsGame
|
Dim oGame As clsGame
|
||||||
Dim oReadyList As New List(Of clsBackup)
|
Dim oReadyList As New List(Of clsBackup)
|
||||||
Dim oRestoreInfo As clsBackup
|
Dim oRestoreInfo As clsBackup
|
||||||
|
Dim bTriggerReload As Boolean = False
|
||||||
|
|
||||||
eCurrentOperation = eOperation.Restore
|
eCurrentOperation = eOperation.Restore
|
||||||
OperationStarted()
|
OperationStarted()
|
||||||
@@ -171,7 +172,8 @@ Public Class frmMain
|
|||||||
For Each oGame In oRestoreList
|
For Each oGame In oRestoreList
|
||||||
oRestoreInfo = oBackupData(oGame.Name)
|
oRestoreInfo = oBackupData(oGame.Name)
|
||||||
|
|
||||||
If mgrRestore.CheckPath(oRestoreInfo, oGame) Then
|
If mgrRestore.CheckPath(oRestoreInfo, oGame, bTriggerReload) Then
|
||||||
|
If bTriggerReload Then LoadGameSettings()
|
||||||
oReadyList.Add(oRestoreInfo)
|
oReadyList.Add(oRestoreInfo)
|
||||||
Else
|
Else
|
||||||
UpdateLog(oRestoreInfo.Name & " restore was cancelled due to unknown restore path.", False, ToolTipIcon.Error, True)
|
UpdateLog(oRestoreInfo.Name & " restore was cancelled due to unknown restore path.", False, ToolTipIcon.Error, True)
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ Public Class mgrRestore
|
|||||||
Public Event UpdateRestoreInfo(oRestoreInfo As clsBackup)
|
Public Event UpdateRestoreInfo(oRestoreInfo As clsBackup)
|
||||||
Public Event SetLastAction(sMessage As String)
|
Public Event SetLastAction(sMessage As String)
|
||||||
|
|
||||||
Public Shared Function CheckPath(ByRef oRestoreInfo As clsBackup, ByVal oGame As clsGame) As Boolean
|
Public Shared Function CheckPath(ByRef oRestoreInfo As clsBackup, ByVal oGame As clsGame, Optional ByRef bTriggerReload As Boolean = False) As Boolean
|
||||||
Dim sProcess As String
|
Dim sProcess As String
|
||||||
Dim sRestorePath As String
|
Dim sRestorePath As String
|
||||||
Dim bNoAuto As Boolean
|
Dim bNoAuto As Boolean
|
||||||
@@ -41,6 +41,12 @@ Public Class mgrRestore
|
|||||||
sRestorePath = mgrPath.ProcessPathSearch(oRestoreInfo.Name, sProcess, oRestoreInfo.Name & " uses a relative path and has never been detected on this computer.", bNoAuto)
|
sRestorePath = mgrPath.ProcessPathSearch(oRestoreInfo.Name, sProcess, oRestoreInfo.Name & " uses a relative path and has never been detected on this computer.", bNoAuto)
|
||||||
|
|
||||||
If sRestorePath <> String.Empty Then
|
If sRestorePath <> String.Empty Then
|
||||||
|
'Update the process path in game object, save it, and make sure a monitor list reload is triggered
|
||||||
|
oGame.ProcessPath = sRestorePath
|
||||||
|
mgrMonitorList.DoListUpdate(oGame)
|
||||||
|
bTriggerReload = True
|
||||||
|
|
||||||
|
'Set path for restore
|
||||||
oRestoreInfo.RelativeRestorePath = sRestorePath & "\" & oRestoreInfo.RestorePath
|
oRestoreInfo.RelativeRestorePath = sRestorePath & "\" & oRestoreInfo.RestorePath
|
||||||
Else
|
Else
|
||||||
Return False
|
Return False
|
||||||
|
|||||||
Reference in New Issue
Block a user