Fixed restore path mismatch with issue #67
This commit is contained in:
@@ -414,16 +414,18 @@ Public Class frmMain
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
'Check if the restore location exists, if not we assume the game is not installed and should be auto-marked.
|
'Check if the restore location exists, if not we assume the game is not installed and should be auto-marked.
|
||||||
If oBackup.AbsolutePath Then
|
|
||||||
sExtractPath = oBackup.RestorePath
|
|
||||||
Else
|
|
||||||
hshGames = mgrMonitorList.DoListGetbyName(de.Key)
|
hshGames = mgrMonitorList.DoListGetbyName(de.Key)
|
||||||
If hshGames.Count = 1 Then
|
If hshGames.Count = 1 Then
|
||||||
oGame = DirectCast(hshGames(0), clsGame)
|
oGame = DirectCast(hshGames(0), clsGame)
|
||||||
|
mgrRestore.DoPathOverride(oBackup, oGame)
|
||||||
If oGame.ProcessPath <> String.Empty Then
|
If oGame.ProcessPath <> String.Empty Then
|
||||||
oBackup.RelativeRestorePath = oGame.ProcessPath & Path.DirectorySeparatorChar & oBackup.RestorePath
|
oBackup.RelativeRestorePath = oGame.ProcessPath & Path.DirectorySeparatorChar & oBackup.RestorePath
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If oBackup.AbsolutePath Then
|
||||||
|
sExtractPath = oBackup.RestorePath
|
||||||
|
Else
|
||||||
sExtractPath = oBackup.RelativeRestorePath
|
sExtractPath = oBackup.RelativeRestorePath
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user