Compare commits
53 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d11f468add | ||
|
|
ef6997a2ab | ||
|
|
9386da4a2a | ||
|
|
d4210053ad | ||
|
|
41d11cca8e | ||
|
|
22df153513 | ||
|
|
2548d0dceb | ||
|
|
4b0d4a62c8 | ||
|
|
11d8e4594c | ||
|
|
7259f92ec1 | ||
|
|
024f17abe9 | ||
|
|
97cf2618e3 | ||
|
|
5fa746da8e | ||
|
|
91b9554f40 | ||
|
|
b5c977e66c | ||
|
|
15c33ca039 | ||
|
|
aa3237d0fa | ||
|
|
1f291bbcd8 | ||
|
|
9cd786c303 | ||
|
|
e701d67d79 | ||
|
|
be8cb66136 | ||
|
|
50563e3be0 | ||
|
|
2623bf7f7a | ||
|
|
6230d2f888 | ||
|
|
adc857fe5e | ||
|
|
bddf07ee44 | ||
|
|
63ed3dac67 | ||
|
|
922103e5aa | ||
|
|
d0fe33e953 | ||
|
|
934d17de47 | ||
|
|
2ccc10bb9c | ||
|
|
cc1db7e524 | ||
|
|
c2a9d3ee77 | ||
|
|
65fe7214eb | ||
|
|
71d09126c2 | ||
|
|
2eb0c30702 | ||
|
|
24e1c4b92f | ||
|
|
4e7eb58463 | ||
|
|
3ae0d1ba82 | ||
|
|
6f3ed9ab81 | ||
|
|
a490e6d1f2 | ||
|
|
a5dd1d547b | ||
|
|
974aaa3638 | ||
|
|
c3b73a9953 | ||
|
|
3bd4cbd0bd | ||
|
|
5a9b3c99b3 | ||
|
|
8ce1b00a8c | ||
|
|
e4237a74bb | ||
|
|
72f520f333 | ||
|
|
dc9ec7f190 | ||
|
|
6c5c54ea1b | ||
|
|
3184cb61ec | ||
|
|
8ebfed7ab7 |
@@ -1,6 +1,7 @@
|
|||||||
Public Class Game
|
Public Class Game
|
||||||
Private sGameName As String
|
Private sGameName As String
|
||||||
Private sProcessName As String
|
Private sProcessName As String
|
||||||
|
Private sParameter As String
|
||||||
Private sPath As String
|
Private sPath As String
|
||||||
Private bAbsolutePath As Boolean
|
Private bAbsolutePath As Boolean
|
||||||
Private bFolderSave As Boolean
|
Private bFolderSave As Boolean
|
||||||
@@ -26,6 +27,15 @@
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Property Parameter As String
|
||||||
|
Set(value As String)
|
||||||
|
sParameter = value
|
||||||
|
End Set
|
||||||
|
Get
|
||||||
|
Return sParameter
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
Property Path As String
|
Property Path As String
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
sPath = value
|
sPath = value
|
||||||
|
|||||||
@@ -7,8 +7,6 @@
|
|||||||
Private sRelativeRestorePath As String = String.Empty
|
Private sRelativeRestorePath As String = String.Empty
|
||||||
Private dDateUpdated As DateTime = Date.Now
|
Private dDateUpdated As DateTime = Date.Now
|
||||||
Private sUpdatedBy As String = String.Empty
|
Private sUpdatedBy As String = String.Empty
|
||||||
Private dLastDateUpdated As DateTime = Date.Now
|
|
||||||
Private sLastUpdatedBy As String = String.Empty
|
|
||||||
Private sCheckSum As String = String.Empty
|
Private sCheckSum As String = String.Empty
|
||||||
|
|
||||||
Property ID As String
|
Property ID As String
|
||||||
@@ -109,24 +107,6 @@
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Property LastDateUpdated As DateTime
|
|
||||||
Get
|
|
||||||
Return dLastDateUpdated
|
|
||||||
End Get
|
|
||||||
Set(value As DateTime)
|
|
||||||
dLastDateUpdated = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Property LastUpdatedBy As String
|
|
||||||
Get
|
|
||||||
Return sLastUpdatedBy
|
|
||||||
End Get
|
|
||||||
Set(value As String)
|
|
||||||
sLastUpdatedBy = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Property CheckSum As String
|
Property CheckSum As String
|
||||||
Get
|
Get
|
||||||
Return sCheckSum
|
Return sCheckSum
|
||||||
|
|||||||
@@ -2,12 +2,14 @@
|
|||||||
Private sGameID As String = Guid.NewGuid.ToString
|
Private sGameID As String = Guid.NewGuid.ToString
|
||||||
Private sGameName As String = String.Empty
|
Private sGameName As String = String.Empty
|
||||||
Private sProcessName As String = String.Empty
|
Private sProcessName As String = String.Empty
|
||||||
|
Private sParameter As String = String.Empty
|
||||||
Private sPath As String = String.Empty
|
Private sPath As String = String.Empty
|
||||||
Private bAbsolutePath As Boolean = False
|
Private bAbsolutePath As Boolean = False
|
||||||
Private bFolderSave As Boolean = False
|
Private bFolderSave As Boolean = False
|
||||||
Private sFileType As String = String.Empty
|
Private sFileType As String = String.Empty
|
||||||
Private bAppendTimeStamp As Boolean = False
|
Private bAppendTimeStamp As Boolean = False
|
||||||
Private iBackupLimit As Integer = 2
|
Private iBackupLimit As Integer = 2
|
||||||
|
Private bCleanFolder As Boolean = False
|
||||||
Private sExcludeList As String = String.Empty
|
Private sExcludeList As String = String.Empty
|
||||||
Private sProcessPath As String = String.Empty
|
Private sProcessPath As String = String.Empty
|
||||||
Private sIcon As String = String.Empty
|
Private sIcon As String = String.Empty
|
||||||
@@ -73,6 +75,15 @@
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Property Parameter As String
|
||||||
|
Set(value As String)
|
||||||
|
sParameter = value
|
||||||
|
End Set
|
||||||
|
Get
|
||||||
|
Return sParameter
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
Property Path As String
|
Property Path As String
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
sPath = mgrPath.ReverseSpecialPaths(value)
|
sPath = mgrPath.ReverseSpecialPaths(value)
|
||||||
@@ -127,6 +138,15 @@
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Property CleanFolder As Boolean
|
||||||
|
Get
|
||||||
|
Return bCleanFolder
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
bCleanFolder = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
Property ExcludeList As String
|
Property ExcludeList As String
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
sExcludeList = value
|
sExcludeList = value
|
||||||
@@ -238,6 +258,26 @@
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
ReadOnly Property IncludeArray As String()
|
||||||
|
Get
|
||||||
|
If FileType = String.Empty Then
|
||||||
|
Return New String() {}
|
||||||
|
Else
|
||||||
|
Return FileType.Split(":")
|
||||||
|
End If
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
ReadOnly Property ExcludeArray As String()
|
||||||
|
Get
|
||||||
|
If ExcludeList = String.Empty Then
|
||||||
|
Return New String() {}
|
||||||
|
Else
|
||||||
|
Return ExcludeList.Split(":")
|
||||||
|
End If
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
Public Function SyncEquals(obj As Object, eSyncFields As eOptionalSyncFields) As Boolean
|
Public Function SyncEquals(obj As Object, eSyncFields As eOptionalSyncFields) As Boolean
|
||||||
Dim oGame As clsGame = TryCast(obj, clsGame)
|
Dim oGame As clsGame = TryCast(obj, clsGame)
|
||||||
If oGame Is Nothing Then
|
If oGame Is Nothing Then
|
||||||
@@ -253,6 +293,9 @@
|
|||||||
If ProcessName <> oGame.ProcessName Then
|
If ProcessName <> oGame.ProcessName Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
If Parameter <> oGame.Parameter Then
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
If Path <> oGame.Path Then
|
If Path <> oGame.Path Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
@@ -268,6 +311,9 @@
|
|||||||
If FolderSave <> oGame.FolderSave Then
|
If FolderSave <> oGame.FolderSave Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
If CleanFolder <> oGame.CleanFolder Then
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
If AppendTimeStamp <> oGame.AppendTimeStamp Then
|
If AppendTimeStamp <> oGame.AppendTimeStamp Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
Public Class clsSavedPath
|
||||||
|
Private sPathName As String = String.Empty
|
||||||
|
Private sPath As String = String.Empty
|
||||||
|
|
||||||
|
Property PathName As String
|
||||||
|
Get
|
||||||
|
Return sPathName
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
sPathName = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Property Path As String
|
||||||
|
Get
|
||||||
|
Return sPath
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
sPath = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
End Class
|
||||||
@@ -425,8 +425,8 @@ Public Class frmAddWizard
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
sNewPath = mgrCommon.OpenFileBrowser(frmAddWizard_ChooseProcess, "exe",
|
sNewPath = mgrCommon.OpenFileBrowser("Wizard_Process_Path", frmAddWizard_ChooseProcess, "exe",
|
||||||
frmAddWizard_Executable, sDefaultFolder, False)
|
frmAddWizard_Executable, sDefaultFolder, False, False)
|
||||||
|
|
||||||
If sNewPath <> String.Empty Then txtProcessPath.Text = sNewPath
|
If sNewPath <> String.Empty Then txtProcessPath.Text = sNewPath
|
||||||
End Sub
|
End Sub
|
||||||
@@ -442,7 +442,7 @@ Public Class frmAddWizard
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
sNewPath = mgrCommon.OpenFolderBrowser(frmAddWizard_ChooseSavePath, sDefaultFolder, False)
|
sNewPath = mgrCommon.OpenFolderBrowser("Wizard_Save_Path", frmAddWizard_ChooseSavePath, sDefaultFolder, False, False)
|
||||||
|
|
||||||
If sNewPath <> String.Empty Then txtSavePath.Text = sNewPath
|
If sNewPath <> String.Empty Then txtSavePath.Text = sNewPath
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
Generated
+47
-12
@@ -28,6 +28,9 @@ Partial Class frmGameManager
|
|||||||
Me.btnBackup = New System.Windows.Forms.Button()
|
Me.btnBackup = New System.Windows.Forms.Button()
|
||||||
Me.btnClose = New System.Windows.Forms.Button()
|
Me.btnClose = New System.Windows.Forms.Button()
|
||||||
Me.grpConfig = New System.Windows.Forms.GroupBox()
|
Me.grpConfig = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.txtParameter = New System.Windows.Forms.TextBox()
|
||||||
|
Me.lblParameter = New System.Windows.Forms.Label()
|
||||||
|
Me.chkCleanFolder = New System.Windows.Forms.CheckBox()
|
||||||
Me.lblLimit = New System.Windows.Forms.Label()
|
Me.lblLimit = New System.Windows.Forms.Label()
|
||||||
Me.nudLimit = New System.Windows.Forms.NumericUpDown()
|
Me.nudLimit = New System.Windows.Forms.NumericUpDown()
|
||||||
Me.btnExclude = New System.Windows.Forms.Button()
|
Me.btnExclude = New System.Windows.Forms.Button()
|
||||||
@@ -151,6 +154,9 @@ Partial Class frmGameManager
|
|||||||
'grpConfig
|
'grpConfig
|
||||||
'
|
'
|
||||||
Me.grpConfig.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
Me.grpConfig.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.grpConfig.Controls.Add(Me.txtParameter)
|
||||||
|
Me.grpConfig.Controls.Add(Me.lblParameter)
|
||||||
|
Me.grpConfig.Controls.Add(Me.chkCleanFolder)
|
||||||
Me.grpConfig.Controls.Add(Me.lblLimit)
|
Me.grpConfig.Controls.Add(Me.lblLimit)
|
||||||
Me.grpConfig.Controls.Add(Me.nudLimit)
|
Me.grpConfig.Controls.Add(Me.nudLimit)
|
||||||
Me.grpConfig.Controls.Add(Me.btnExclude)
|
Me.grpConfig.Controls.Add(Me.btnExclude)
|
||||||
@@ -176,13 +182,39 @@ Partial Class frmGameManager
|
|||||||
Me.grpConfig.TabStop = False
|
Me.grpConfig.TabStop = False
|
||||||
Me.grpConfig.Text = "Configuration"
|
Me.grpConfig.Text = "Configuration"
|
||||||
'
|
'
|
||||||
|
'txtParameter
|
||||||
|
'
|
||||||
|
Me.txtParameter.Location = New System.Drawing.Point(333, 45)
|
||||||
|
Me.txtParameter.Name = "txtParameter"
|
||||||
|
Me.txtParameter.Size = New System.Drawing.Size(150, 20)
|
||||||
|
Me.txtParameter.TabIndex = 7
|
||||||
|
'
|
||||||
|
'lblParameter
|
||||||
|
'
|
||||||
|
Me.lblParameter.AutoSize = True
|
||||||
|
Me.lblParameter.Location = New System.Drawing.Point(269, 48)
|
||||||
|
Me.lblParameter.Name = "lblParameter"
|
||||||
|
Me.lblParameter.Size = New System.Drawing.Size(58, 13)
|
||||||
|
Me.lblParameter.TabIndex = 6
|
||||||
|
Me.lblParameter.Text = "Parameter:"
|
||||||
|
'
|
||||||
|
'chkCleanFolder
|
||||||
|
'
|
||||||
|
Me.chkCleanFolder.AutoSize = True
|
||||||
|
Me.chkCleanFolder.Location = New System.Drawing.Point(329, 101)
|
||||||
|
Me.chkCleanFolder.Name = "chkCleanFolder"
|
||||||
|
Me.chkCleanFolder.Size = New System.Drawing.Size(136, 17)
|
||||||
|
Me.chkCleanFolder.TabIndex = 13
|
||||||
|
Me.chkCleanFolder.Text = "Delete folder on restore"
|
||||||
|
Me.chkCleanFolder.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
'lblLimit
|
'lblLimit
|
||||||
'
|
'
|
||||||
Me.lblLimit.AutoSize = True
|
Me.lblLimit.AutoSize = True
|
||||||
Me.lblLimit.Location = New System.Drawing.Point(375, 130)
|
Me.lblLimit.Location = New System.Drawing.Point(375, 130)
|
||||||
Me.lblLimit.Name = "lblLimit"
|
Me.lblLimit.Name = "lblLimit"
|
||||||
Me.lblLimit.Size = New System.Drawing.Size(68, 13)
|
Me.lblLimit.Size = New System.Drawing.Size(68, 13)
|
||||||
Me.lblLimit.TabIndex = 13
|
Me.lblLimit.TabIndex = 16
|
||||||
Me.lblLimit.Text = "Backup Limit"
|
Me.lblLimit.Text = "Backup Limit"
|
||||||
Me.lblLimit.Visible = False
|
Me.lblLimit.Visible = False
|
||||||
'
|
'
|
||||||
@@ -192,7 +224,7 @@ Partial Class frmGameManager
|
|||||||
Me.nudLimit.Minimum = New Decimal(New Integer() {2, 0, 0, 0})
|
Me.nudLimit.Minimum = New Decimal(New Integer() {2, 0, 0, 0})
|
||||||
Me.nudLimit.Name = "nudLimit"
|
Me.nudLimit.Name = "nudLimit"
|
||||||
Me.nudLimit.Size = New System.Drawing.Size(40, 20)
|
Me.nudLimit.Size = New System.Drawing.Size(40, 20)
|
||||||
Me.nudLimit.TabIndex = 12
|
Me.nudLimit.TabIndex = 15
|
||||||
Me.nudLimit.Value = New Decimal(New Integer() {2, 0, 0, 0})
|
Me.nudLimit.Value = New Decimal(New Integer() {2, 0, 0, 0})
|
||||||
Me.nudLimit.Visible = False
|
Me.nudLimit.Visible = False
|
||||||
'
|
'
|
||||||
@@ -201,7 +233,7 @@ Partial Class frmGameManager
|
|||||||
Me.btnExclude.Location = New System.Drawing.Point(9, 125)
|
Me.btnExclude.Location = New System.Drawing.Point(9, 125)
|
||||||
Me.btnExclude.Name = "btnExclude"
|
Me.btnExclude.Name = "btnExclude"
|
||||||
Me.btnExclude.Size = New System.Drawing.Size(175, 23)
|
Me.btnExclude.Size = New System.Drawing.Size(175, 23)
|
||||||
Me.btnExclude.TabIndex = 9
|
Me.btnExclude.TabIndex = 11
|
||||||
Me.btnExclude.Text = "E&xclude Items..."
|
Me.btnExclude.Text = "E&xclude Items..."
|
||||||
Me.btnExclude.UseVisualStyleBackColor = True
|
Me.btnExclude.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
@@ -210,7 +242,7 @@ Partial Class frmGameManager
|
|||||||
Me.btnInclude.Location = New System.Drawing.Point(9, 97)
|
Me.btnInclude.Location = New System.Drawing.Point(9, 97)
|
||||||
Me.btnInclude.Name = "btnInclude"
|
Me.btnInclude.Name = "btnInclude"
|
||||||
Me.btnInclude.Size = New System.Drawing.Size(175, 23)
|
Me.btnInclude.Size = New System.Drawing.Size(175, 23)
|
||||||
Me.btnInclude.TabIndex = 8
|
Me.btnInclude.TabIndex = 10
|
||||||
Me.btnInclude.Text = "In&clude Items..."
|
Me.btnInclude.Text = "In&clude Items..."
|
||||||
Me.btnInclude.UseVisualStyleBackColor = True
|
Me.btnInclude.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
@@ -229,13 +261,13 @@ Partial Class frmGameManager
|
|||||||
Me.btnSavePathBrowse.Location = New System.Drawing.Point(489, 71)
|
Me.btnSavePathBrowse.Location = New System.Drawing.Point(489, 71)
|
||||||
Me.btnSavePathBrowse.Name = "btnSavePathBrowse"
|
Me.btnSavePathBrowse.Name = "btnSavePathBrowse"
|
||||||
Me.btnSavePathBrowse.Size = New System.Drawing.Size(30, 20)
|
Me.btnSavePathBrowse.Size = New System.Drawing.Size(30, 20)
|
||||||
Me.btnSavePathBrowse.TabIndex = 7
|
Me.btnSavePathBrowse.TabIndex = 9
|
||||||
Me.btnSavePathBrowse.Text = "..."
|
Me.btnSavePathBrowse.Text = "..."
|
||||||
Me.btnSavePathBrowse.UseVisualStyleBackColor = True
|
Me.btnSavePathBrowse.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'btnProcessBrowse
|
'btnProcessBrowse
|
||||||
'
|
'
|
||||||
Me.btnProcessBrowse.Location = New System.Drawing.Point(489, 45)
|
Me.btnProcessBrowse.Location = New System.Drawing.Point(225, 44)
|
||||||
Me.btnProcessBrowse.Name = "btnProcessBrowse"
|
Me.btnProcessBrowse.Name = "btnProcessBrowse"
|
||||||
Me.btnProcessBrowse.Size = New System.Drawing.Size(30, 20)
|
Me.btnProcessBrowse.Size = New System.Drawing.Size(30, 20)
|
||||||
Me.btnProcessBrowse.TabIndex = 5
|
Me.btnProcessBrowse.TabIndex = 5
|
||||||
@@ -293,7 +325,7 @@ Partial Class frmGameManager
|
|||||||
Me.chkTimeStamp.Location = New System.Drawing.Point(190, 129)
|
Me.chkTimeStamp.Location = New System.Drawing.Point(190, 129)
|
||||||
Me.chkTimeStamp.Name = "chkTimeStamp"
|
Me.chkTimeStamp.Name = "chkTimeStamp"
|
||||||
Me.chkTimeStamp.Size = New System.Drawing.Size(133, 17)
|
Me.chkTimeStamp.Size = New System.Drawing.Size(133, 17)
|
||||||
Me.chkTimeStamp.TabIndex = 11
|
Me.chkTimeStamp.TabIndex = 14
|
||||||
Me.chkTimeStamp.Text = "Save multiple backups"
|
Me.chkTimeStamp.Text = "Save multiple backups"
|
||||||
Me.chkTimeStamp.UseVisualStyleBackColor = True
|
Me.chkTimeStamp.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
@@ -303,7 +335,7 @@ Partial Class frmGameManager
|
|||||||
Me.chkFolderSave.Location = New System.Drawing.Point(190, 101)
|
Me.chkFolderSave.Location = New System.Drawing.Point(190, 101)
|
||||||
Me.chkFolderSave.Name = "chkFolderSave"
|
Me.chkFolderSave.Name = "chkFolderSave"
|
||||||
Me.chkFolderSave.Size = New System.Drawing.Size(109, 17)
|
Me.chkFolderSave.Size = New System.Drawing.Size(109, 17)
|
||||||
Me.chkFolderSave.TabIndex = 10
|
Me.chkFolderSave.TabIndex = 12
|
||||||
Me.chkFolderSave.Text = "Save entire folder"
|
Me.chkFolderSave.Text = "Save entire folder"
|
||||||
Me.chkFolderSave.UseVisualStyleBackColor = True
|
Me.chkFolderSave.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
@@ -312,13 +344,13 @@ Partial Class frmGameManager
|
|||||||
Me.txtSavePath.Location = New System.Drawing.Point(69, 71)
|
Me.txtSavePath.Location = New System.Drawing.Point(69, 71)
|
||||||
Me.txtSavePath.Name = "txtSavePath"
|
Me.txtSavePath.Name = "txtSavePath"
|
||||||
Me.txtSavePath.Size = New System.Drawing.Size(414, 20)
|
Me.txtSavePath.Size = New System.Drawing.Size(414, 20)
|
||||||
Me.txtSavePath.TabIndex = 6
|
Me.txtSavePath.TabIndex = 8
|
||||||
'
|
'
|
||||||
'txtProcess
|
'txtProcess
|
||||||
'
|
'
|
||||||
Me.txtProcess.Location = New System.Drawing.Point(69, 45)
|
Me.txtProcess.Location = New System.Drawing.Point(69, 45)
|
||||||
Me.txtProcess.Name = "txtProcess"
|
Me.txtProcess.Name = "txtProcess"
|
||||||
Me.txtProcess.Size = New System.Drawing.Size(414, 20)
|
Me.txtProcess.Size = New System.Drawing.Size(150, 20)
|
||||||
Me.txtProcess.TabIndex = 4
|
Me.txtProcess.TabIndex = 4
|
||||||
'
|
'
|
||||||
'txtName
|
'txtName
|
||||||
@@ -718,10 +750,10 @@ Partial Class frmGameManager
|
|||||||
Me.optPendingRestores.AutoSize = True
|
Me.optPendingRestores.AutoSize = True
|
||||||
Me.optPendingRestores.Location = New System.Drawing.Point(6, 64)
|
Me.optPendingRestores.Location = New System.Drawing.Point(6, 64)
|
||||||
Me.optPendingRestores.Name = "optPendingRestores"
|
Me.optPendingRestores.Name = "optPendingRestores"
|
||||||
Me.optPendingRestores.Size = New System.Drawing.Size(122, 17)
|
Me.optPendingRestores.Size = New System.Drawing.Size(134, 17)
|
||||||
Me.optPendingRestores.TabIndex = 2
|
Me.optPendingRestores.TabIndex = 2
|
||||||
Me.optPendingRestores.TabStop = True
|
Me.optPendingRestores.TabStop = True
|
||||||
Me.optPendingRestores.Text = "New Saves Pending"
|
Me.optPendingRestores.Text = "New Backups Pending"
|
||||||
Me.optPendingRestores.UseVisualStyleBackColor = True
|
Me.optPendingRestores.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'optAllGames
|
'optAllGames
|
||||||
@@ -928,4 +960,7 @@ Partial Class frmGameManager
|
|||||||
Friend WithEvents cmsDeleteBackup As ContextMenuStrip
|
Friend WithEvents cmsDeleteBackup As ContextMenuStrip
|
||||||
Friend WithEvents cmsDeleteOne As ToolStripMenuItem
|
Friend WithEvents cmsDeleteOne As ToolStripMenuItem
|
||||||
Friend WithEvents cmsDeleteAll As ToolStripMenuItem
|
Friend WithEvents cmsDeleteAll As ToolStripMenuItem
|
||||||
|
Friend WithEvents chkCleanFolder As CheckBox
|
||||||
|
Friend WithEvents txtParameter As TextBox
|
||||||
|
Friend WithEvents lblParameter As Label
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
+133
-38
@@ -7,6 +7,7 @@ Public Class frmGameManager
|
|||||||
Private bPendingRestores As Boolean = False
|
Private bPendingRestores As Boolean = False
|
||||||
Private oCurrentBackupItem As clsBackup
|
Private oCurrentBackupItem As clsBackup
|
||||||
Private oCurrentGame As clsGame
|
Private oCurrentGame As clsGame
|
||||||
|
Private oTagsToSave As New List(Of KeyValuePair(Of String, String))
|
||||||
Private bDisableExternalFunctions As Boolean = False
|
Private bDisableExternalFunctions As Boolean = False
|
||||||
Private bTriggerBackup As Boolean = False
|
Private bTriggerBackup As Boolean = False
|
||||||
Private bTriggerRestore As Boolean = False
|
Private bTriggerRestore As Boolean = False
|
||||||
@@ -287,8 +288,8 @@ Public Class frmGameManager
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
sNewPath = mgrCommon.OpenFileBrowser(frmGameManager_ChooseExe, "exe",
|
sNewPath = mgrCommon.OpenFileBrowser("GM_Process", frmGameManager_ChooseExe, "exe",
|
||||||
frmGameManager_Executable, sDefaultFolder, False)
|
frmGameManager_Executable, sDefaultFolder, False, False)
|
||||||
|
|
||||||
If sNewPath <> String.Empty Then
|
If sNewPath <> String.Empty Then
|
||||||
txtAppPath.Text = Path.GetDirectoryName(sNewPath)
|
txtAppPath.Text = Path.GetDirectoryName(sNewPath)
|
||||||
@@ -308,7 +309,7 @@ Public Class frmGameManager
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
sNewPath = mgrCommon.OpenFolderBrowser(frmGameManager_ChooseExePath, sDefaultFolder, False)
|
sNewPath = mgrCommon.OpenFolderBrowser("GM_Process_Path", frmGameManager_ChooseExePath, sDefaultFolder, False, False)
|
||||||
|
|
||||||
If sNewPath <> String.Empty Then txtAppPath.Text = sNewPath
|
If sNewPath <> String.Empty Then txtAppPath.Text = sNewPath
|
||||||
End Sub
|
End Sub
|
||||||
@@ -324,7 +325,7 @@ Public Class frmGameManager
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
sNewPath = mgrCommon.OpenFolderBrowser(frmGameManager_ChooseSaveFolder, sDefaultFolder, False)
|
sNewPath = mgrCommon.OpenFolderBrowser("GM_Save_Path", frmGameManager_ChooseSaveFolder, sDefaultFolder, False, False)
|
||||||
|
|
||||||
If sNewPath <> String.Empty Then
|
If sNewPath <> String.Empty Then
|
||||||
txtSavePath.Text = sNewPath
|
txtSavePath.Text = sNewPath
|
||||||
@@ -345,11 +346,11 @@ Public Class frmGameManager
|
|||||||
|
|
||||||
'Unix Handler
|
'Unix Handler
|
||||||
If Not mgrCommon.IsUnix Then
|
If Not mgrCommon.IsUnix Then
|
||||||
sNewPath = mgrCommon.OpenFileBrowser(frmGameManager_ChooseCustomIcon, "ico",
|
sNewPath = mgrCommon.OpenFileBrowser("GM_Icon", frmGameManager_ChooseCustomIcon, "ico",
|
||||||
frmGameManager_Icon, sDefaultFolder, False)
|
frmGameManager_Icon, sDefaultFolder, False, False)
|
||||||
Else
|
Else
|
||||||
sNewPath = mgrCommon.OpenFileBrowser(frmGameManager_ChooseCustomIcon, "png",
|
sNewPath = mgrCommon.OpenFileBrowser("GM_Icon", frmGameManager_ChooseCustomIcon, "png",
|
||||||
"PNG", sDefaultFolder, False)
|
"PNG", sDefaultFolder, False, False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If sNewPath <> String.Empty Then
|
If sNewPath <> String.Empty Then
|
||||||
@@ -402,9 +403,19 @@ Public Class frmGameManager
|
|||||||
oList.Sort(AddressOf mgrCommon.CompareByListBoxItemByValue)
|
oList.Sort(AddressOf mgrCommon.CompareByListBoxItemByValue)
|
||||||
|
|
||||||
lstGames.BeginUpdate()
|
lstGames.BeginUpdate()
|
||||||
lstGames.DataSource = oList
|
|
||||||
lstGames.ValueMember = "Key"
|
lstGames.ValueMember = "Key"
|
||||||
lstGames.DisplayMember = "Value"
|
lstGames.DisplayMember = "Value"
|
||||||
|
|
||||||
|
'Due to a control bug with Mono we need to fill the list box differently on Linux
|
||||||
|
If mgrCommon.IsUnix Then
|
||||||
|
lstGames.Items.Clear()
|
||||||
|
For Each kp As KeyValuePair(Of String, String) In oList
|
||||||
|
lstGames.Items.Add(kp)
|
||||||
|
Next
|
||||||
|
Else
|
||||||
|
lstGames.DataSource = oList
|
||||||
|
End If
|
||||||
|
|
||||||
lstGames.EndUpdate()
|
lstGames.EndUpdate()
|
||||||
lstGames.ClearSelected()
|
lstGames.ClearSelected()
|
||||||
IsLoading = False
|
IsLoading = False
|
||||||
@@ -470,6 +481,7 @@ Public Class frmGameManager
|
|||||||
frm.ShowDialog()
|
frm.ShowDialog()
|
||||||
|
|
||||||
txtBox.Text = frm.BuilderString
|
txtBox.Text = frm.BuilderString
|
||||||
|
VerifyCleanFolder()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Function FindRestorePath() As Boolean
|
Private Function FindRestorePath() As Boolean
|
||||||
@@ -525,26 +537,41 @@ Public Class frmGameManager
|
|||||||
Dim oApp As clsGame
|
Dim oApp As clsGame
|
||||||
Dim sMonitorIDs As New List(Of String)
|
Dim sMonitorIDs As New List(Of String)
|
||||||
|
|
||||||
For Each oData In lstGames.SelectedItems
|
If eCurrentMode = eModes.Add Then
|
||||||
oApp = DirectCast(AppData(oData.Key), clsGame)
|
'Use a dummy ID
|
||||||
sMonitorIDs.Add(oApp.ID)
|
sMonitorIDs.Add(Guid.NewGuid.ToString)
|
||||||
Next
|
frm.GameName = txtName.Text
|
||||||
|
frm.NewMode = True
|
||||||
frm.IDList = sMonitorIDs
|
frm.TagList = oTagsToSave
|
||||||
frm.GameName = CurrentGame.Name
|
Else
|
||||||
frm.ShowDialog()
|
For Each oData In lstGames.SelectedItems
|
||||||
|
oApp = DirectCast(AppData(oData.Key), clsGame)
|
||||||
'Only update visible tags if one item is selected
|
sMonitorIDs.Add(oApp.ID)
|
||||||
If lstGames.SelectedItems.Count = 1 Then FillTags(CurrentGame.ID)
|
Next
|
||||||
|
frm.GameName = CurrentGame.Name
|
||||||
'If a tag filter is enabled, reload list to reflect changes
|
frm.NewMode = False
|
||||||
If optCustom.Checked Then
|
End If
|
||||||
LoadData()
|
|
||||||
|
frm.IDList = sMonitorIDs
|
||||||
|
frm.ShowDialog()
|
||||||
|
|
||||||
|
If eCurrentMode = eModes.Add Then
|
||||||
|
oTagsToSave = frm.TagList
|
||||||
|
FillTagsbyList(frm.TagList)
|
||||||
|
Else
|
||||||
|
'Only update visible tags if one item is selected
|
||||||
|
If lstGames.SelectedItems.Count = 1 Then FillTagsbyID(CurrentGame.ID)
|
||||||
|
|
||||||
|
'If a tag filter is enabled, reload list to reflect changes
|
||||||
|
If optCustom.Checked Then
|
||||||
|
LoadData()
|
||||||
|
End If
|
||||||
|
|
||||||
|
'If the selected game(s) no longer match the filter, disable the form
|
||||||
|
If lstGames.SelectedIndex = -1 Then eCurrentMode = eModes.Disabled
|
||||||
|
ModeChange()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'If the selected game(s) no longer match the filter, disable the form
|
|
||||||
If lstGames.SelectedIndex = -1 Then eCurrentMode = eModes.Disabled
|
|
||||||
ModeChange()
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub UpdateBackupInfo(ByVal sManifestID As String)
|
Private Sub UpdateBackupInfo(ByVal sManifestID As String)
|
||||||
@@ -556,7 +583,7 @@ Public Class frmGameManager
|
|||||||
sFileName = BackupFolder & CurrentBackupItem.FileName
|
sFileName = BackupFolder & CurrentBackupItem.FileName
|
||||||
|
|
||||||
If File.Exists(sFileName) Then
|
If File.Exists(sFileName) Then
|
||||||
lblBackupFileData.Text = Path.GetFileName(CurrentBackupItem.FileName) & " (" & mgrCommon.GetFileSize(sFileName) & ")"
|
lblBackupFileData.Text = Path.GetFileName(CurrentBackupItem.FileName) & " (" & mgrCommon.FormatDiskSpace(mgrCommon.GetFileSize(sFileName)) & ")"
|
||||||
Else
|
Else
|
||||||
lblBackupFileData.Text = frmGameManager_ErrorNoBackupExists
|
lblBackupFileData.Text = frmGameManager_ErrorNoBackupExists
|
||||||
End If
|
End If
|
||||||
@@ -598,7 +625,7 @@ Public Class frmGameManager
|
|||||||
btnDeleteBackup.Enabled = True
|
btnDeleteBackup.Enabled = True
|
||||||
|
|
||||||
If File.Exists(sFileName) Then
|
If File.Exists(sFileName) Then
|
||||||
lblBackupFileData.Text = Path.GetFileName(CurrentBackupItem.FileName) & " (" & mgrCommon.GetFileSize(sFileName) & ")"
|
lblBackupFileData.Text = Path.GetFileName(CurrentBackupItem.FileName) & " (" & mgrCommon.FormatDiskSpace(mgrCommon.GetFileSize(sFileName)) & ")"
|
||||||
Else
|
Else
|
||||||
lblBackupFileData.Text = frmGameManager_ErrorNoBackupExists
|
lblBackupFileData.Text = frmGameManager_ErrorNoBackupExists
|
||||||
End If
|
End If
|
||||||
@@ -710,10 +737,12 @@ Public Class frmGameManager
|
|||||||
txtID.Text = oApp.ID
|
txtID.Text = oApp.ID
|
||||||
txtName.Text = oApp.Name
|
txtName.Text = oApp.Name
|
||||||
txtProcess.Text = oApp.TrueProcess
|
txtProcess.Text = oApp.TrueProcess
|
||||||
|
txtParameter.Text = oApp.Parameter
|
||||||
txtSavePath.Text = oApp.Path
|
txtSavePath.Text = oApp.Path
|
||||||
txtFileType.Text = oApp.FileType
|
txtFileType.Text = oApp.FileType
|
||||||
txtExclude.Text = oApp.ExcludeList
|
txtExclude.Text = oApp.ExcludeList
|
||||||
chkFolderSave.Checked = oApp.FolderSave
|
chkFolderSave.Checked = oApp.FolderSave
|
||||||
|
chkCleanFolder.Checked = oApp.CleanFolder
|
||||||
chkTimeStamp.Checked = oApp.AppendTimeStamp
|
chkTimeStamp.Checked = oApp.AppendTimeStamp
|
||||||
nudLimit.Value = oApp.BackupLimit
|
nudLimit.Value = oApp.BackupLimit
|
||||||
chkEnabled.Checked = oApp.Enabled
|
chkEnabled.Checked = oApp.Enabled
|
||||||
@@ -729,7 +758,7 @@ Public Class frmGameManager
|
|||||||
txtVersion.Text = oApp.Version
|
txtVersion.Text = oApp.Version
|
||||||
txtIcon.Text = oApp.Icon
|
txtIcon.Text = oApp.Icon
|
||||||
|
|
||||||
FillTags(oData.Key)
|
FillTagsbyID(oData.Key)
|
||||||
|
|
||||||
'Icon
|
'Icon
|
||||||
If IO.File.Exists(oApp.Icon) Then
|
If IO.File.Exists(oApp.Icon) Then
|
||||||
@@ -754,7 +783,7 @@ Public Class frmGameManager
|
|||||||
IsLoading = False
|
IsLoading = False
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub FillTags(ByVal sID As String)
|
Private Sub FillTagsbyID(ByVal sID As String)
|
||||||
Dim hshTags As Hashtable
|
Dim hshTags As Hashtable
|
||||||
Dim oTag As clsTag
|
Dim oTag As clsTag
|
||||||
Dim sTags As String = String.Empty
|
Dim sTags As String = String.Empty
|
||||||
@@ -770,6 +799,17 @@ Public Class frmGameManager
|
|||||||
lblTags.Text = sTags.TrimEnd(cTrim)
|
lblTags.Text = sTags.TrimEnd(cTrim)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub FillTagsbyList(ByVal oList As List(Of KeyValuePair(Of String, String)))
|
||||||
|
Dim sTags As String = String.Empty
|
||||||
|
Dim cTrim() As Char = {",", " "}
|
||||||
|
|
||||||
|
For Each kp As KeyValuePair(Of String, String) In oList
|
||||||
|
sTags &= "#" & kp.Value & ", "
|
||||||
|
Next
|
||||||
|
|
||||||
|
lblTags.Text = sTags.TrimEnd(cTrim)
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Sub DirtyCheck_ValueChanged(sender As Object, e As EventArgs)
|
Private Sub DirtyCheck_ValueChanged(sender As Object, e As EventArgs)
|
||||||
If Not IsLoading And Not eCurrentMode = eModes.MultiSelect Then
|
If Not IsLoading And Not eCurrentMode = eModes.MultiSelect Then
|
||||||
IsDirty = True
|
IsDirty = True
|
||||||
@@ -815,6 +855,7 @@ Public Class frmGameManager
|
|||||||
|
|
||||||
Select Case eCurrentMode
|
Select Case eCurrentMode
|
||||||
Case eModes.Add
|
Case eModes.Add
|
||||||
|
oTagsToSave.Clear()
|
||||||
grpFilter.Enabled = False
|
grpFilter.Enabled = False
|
||||||
lstGames.Enabled = False
|
lstGames.Enabled = False
|
||||||
lblQuickFilter.Enabled = False
|
lblQuickFilter.Enabled = False
|
||||||
@@ -826,6 +867,7 @@ Public Class frmGameManager
|
|||||||
WipeControls(grpConfig.Controls)
|
WipeControls(grpConfig.Controls)
|
||||||
WipeControls(grpExtra.Controls)
|
WipeControls(grpExtra.Controls)
|
||||||
WipeControls(grpStats.Controls)
|
WipeControls(grpStats.Controls)
|
||||||
|
chkCleanFolder.Enabled = False
|
||||||
pbIcon.Image = Icon_Unknown
|
pbIcon.Image = Icon_Unknown
|
||||||
chkEnabled.Enabled = True
|
chkEnabled.Enabled = True
|
||||||
chkMonitorOnly.Enabled = True
|
chkMonitorOnly.Enabled = True
|
||||||
@@ -841,8 +883,9 @@ Public Class frmGameManager
|
|||||||
btnOpenRestorePath.Enabled = False
|
btnOpenRestorePath.Enabled = False
|
||||||
chkEnabled.Checked = True
|
chkEnabled.Checked = True
|
||||||
chkMonitorOnly.Checked = False
|
chkMonitorOnly.Checked = False
|
||||||
btnTags.Enabled = False
|
btnTags.Enabled = True
|
||||||
lblTags.Visible = False
|
lblTags.Text = String.Empty
|
||||||
|
lblTags.Visible = True
|
||||||
btnInclude.Text = frmGameManager_btnInclude
|
btnInclude.Text = frmGameManager_btnInclude
|
||||||
btnExclude.Text = frmGameManager_btnExclude
|
btnExclude.Text = frmGameManager_btnExclude
|
||||||
btnImport.Enabled = False
|
btnImport.Enabled = False
|
||||||
@@ -982,6 +1025,7 @@ Public Class frmGameManager
|
|||||||
Else
|
Else
|
||||||
btnInclude.Enabled = True
|
btnInclude.Enabled = True
|
||||||
End If
|
End If
|
||||||
|
VerifyCleanFolder()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub TimeStampModeChange()
|
Private Sub TimeStampModeChange()
|
||||||
@@ -996,6 +1040,17 @@ Public Class frmGameManager
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub VerifyCleanFolder()
|
||||||
|
If Not bIsLoading Then
|
||||||
|
If chkFolderSave.Checked = True And txtExclude.Text = String.Empty And txtSavePath.Text <> String.Empty Then
|
||||||
|
chkCleanFolder.Enabled = True
|
||||||
|
Else
|
||||||
|
chkCleanFolder.Checked = False
|
||||||
|
chkCleanFolder.Enabled = False
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Sub EditApp()
|
Private Sub EditApp()
|
||||||
eCurrentMode = eModes.Edit
|
eCurrentMode = eModes.Edit
|
||||||
ModeChange()
|
ModeChange()
|
||||||
@@ -1038,6 +1093,22 @@ Public Class frmGameManager
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub SaveTags(ByVal sID As String)
|
||||||
|
Dim oGameTag As clsGameTag
|
||||||
|
Dim oGameTags As List(Of clsGameTag)
|
||||||
|
|
||||||
|
If oTagsToSave.Count > 0 Then
|
||||||
|
oGameTags = New List(Of clsGameTag)
|
||||||
|
For Each kp As KeyValuePair(Of String, String) In oTagsToSave
|
||||||
|
oGameTag = New clsGameTag
|
||||||
|
oGameTag.MonitorID = sID
|
||||||
|
oGameTag.TagID = kp.Key
|
||||||
|
oGameTags.Add(oGameTag)
|
||||||
|
Next
|
||||||
|
mgrGameTags.DoGameTagAddBatch(oGameTags)
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Sub SaveApp()
|
Private Sub SaveApp()
|
||||||
Dim oData As KeyValuePair(Of String, String)
|
Dim oData As KeyValuePair(Of String, String)
|
||||||
Dim oApp As New clsGame
|
Dim oApp As New clsGame
|
||||||
@@ -1056,12 +1127,14 @@ Public Class frmGameManager
|
|||||||
Else
|
Else
|
||||||
oApp.ProcessName = txtProcess.Text
|
oApp.ProcessName = txtProcess.Text
|
||||||
End If
|
End If
|
||||||
|
oApp.Parameter = txtParameter.Text
|
||||||
oApp.Path = txtSavePath.Text
|
oApp.Path = txtSavePath.Text
|
||||||
'Only do a simple root check here in case the user doesn't really understand creating a proper configuration
|
'Only do a simple root check here in case the user doesn't really understand creating a proper configuration
|
||||||
oApp.AbsolutePath = Path.IsPathRooted(txtSavePath.Text)
|
oApp.AbsolutePath = Path.IsPathRooted(txtSavePath.Text)
|
||||||
oApp.FileType = txtFileType.Text
|
oApp.FileType = txtFileType.Text
|
||||||
oApp.ExcludeList = txtExclude.Text
|
oApp.ExcludeList = txtExclude.Text
|
||||||
oApp.FolderSave = chkFolderSave.Checked
|
oApp.FolderSave = chkFolderSave.Checked
|
||||||
|
oApp.CleanFolder = chkCleanFolder.Checked
|
||||||
oApp.AppendTimeStamp = chkTimeStamp.Checked
|
oApp.AppendTimeStamp = chkTimeStamp.Checked
|
||||||
oApp.BackupLimit = nudLimit.Value
|
oApp.BackupLimit = nudLimit.Value
|
||||||
oApp.Enabled = chkEnabled.Checked
|
oApp.Enabled = chkEnabled.Checked
|
||||||
@@ -1077,6 +1150,7 @@ Public Class frmGameManager
|
|||||||
If CoreValidatation(oApp) Then
|
If CoreValidatation(oApp) Then
|
||||||
bSuccess = True
|
bSuccess = True
|
||||||
mgrMonitorList.DoListAdd(oApp)
|
mgrMonitorList.DoListAdd(oApp)
|
||||||
|
SaveTags(oApp.ID)
|
||||||
eCurrentMode = eModes.View
|
eCurrentMode = eModes.View
|
||||||
End If
|
End If
|
||||||
Case eModes.Edit
|
Case eModes.Edit
|
||||||
@@ -1102,8 +1176,16 @@ Public Class frmGameManager
|
|||||||
If bSuccess Then
|
If bSuccess Then
|
||||||
IsDirty = False
|
IsDirty = False
|
||||||
LoadData()
|
LoadData()
|
||||||
ModeChange()
|
If eCurrentMode = eModes.View Then
|
||||||
If eCurrentMode = eModes.View Then lstGames.SelectedValue = oApp.ID
|
lstGames.SelectedItem = New KeyValuePair(Of String, String)(oApp.ID, oApp.Name)
|
||||||
|
Else
|
||||||
|
ModeChange()
|
||||||
|
End If
|
||||||
|
'If the addition doesn't match the current filter we should go into disabled mode as it can't be selected to view
|
||||||
|
If lstGames.SelectedIndex = -1 Then
|
||||||
|
eCurrentMode = eModes.Disabled
|
||||||
|
ModeChange()
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1144,6 +1226,7 @@ Public Class frmGameManager
|
|||||||
eCurrentMode = eModes.View
|
eCurrentMode = eModes.View
|
||||||
FillData()
|
FillData()
|
||||||
ModeChange()
|
ModeChange()
|
||||||
|
VerifyCleanFolder()
|
||||||
ElseIf lstGames.SelectedItems.Count > 1 Then
|
ElseIf lstGames.SelectedItems.Count > 1 Then
|
||||||
eCurrentMode = eModes.MultiSelect
|
eCurrentMode = eModes.MultiSelect
|
||||||
ModeChange()
|
ModeChange()
|
||||||
@@ -1176,6 +1259,13 @@ Public Class frmGameManager
|
|||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If oApp.Parameter <> String.Empty Then
|
||||||
|
If mgrMonitorList.DoDuplicateParameterCheck(oApp.ProcessName, oApp.Parameter, , oApp.ID) Then
|
||||||
|
mgrCommon.ShowMessage(frmGameManager_ErrorProcessParameterDupe, MsgBoxStyle.Exclamation)
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
@@ -1329,7 +1419,7 @@ Public Class frmGameManager
|
|||||||
Private Sub ImportGameListFile()
|
Private Sub ImportGameListFile()
|
||||||
Dim sLocation As String
|
Dim sLocation As String
|
||||||
|
|
||||||
sLocation = mgrCommon.OpenFileBrowser(frmGameManager_ChooseImportXML, "xml", frmGameManager_XML, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), False)
|
sLocation = mgrCommon.OpenFileBrowser("XML_Import", frmGameManager_ChooseImportXML, "xml", frmGameManager_XML, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), False)
|
||||||
|
|
||||||
If sLocation <> String.Empty Then
|
If sLocation <> String.Empty Then
|
||||||
If mgrMonitorList.DoImport(sLocation) Then
|
If mgrMonitorList.DoImport(sLocation) Then
|
||||||
@@ -1342,7 +1432,7 @@ Public Class frmGameManager
|
|||||||
Private Sub ExportGameList()
|
Private Sub ExportGameList()
|
||||||
Dim sLocation As String
|
Dim sLocation As String
|
||||||
|
|
||||||
sLocation = mgrCommon.SaveFileBrowser(frmGameManager_ChooseExportXML, "xml", frmGameManager_XML, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), frmGameManager_DefaultExportFileName & " " & Date.Now.ToString("dd-MMM-yyyy"))
|
sLocation = mgrCommon.SaveFileBrowser("XML_Export", frmGameManager_ChooseExportXML, "xml", frmGameManager_XML, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), frmGameManager_DefaultExportFileName & " " & Date.Now.ToString("dd-MMM-yyyy"))
|
||||||
|
|
||||||
If sLocation <> String.Empty Then
|
If sLocation <> String.Empty Then
|
||||||
mgrMonitorList.ExportMonitorList(sLocation)
|
mgrMonitorList.ExportMonitorList(sLocation)
|
||||||
@@ -1408,9 +1498,11 @@ Public Class frmGameManager
|
|||||||
btnProcessBrowse.Text = frmGameManager_btnProcessBrowse
|
btnProcessBrowse.Text = frmGameManager_btnProcessBrowse
|
||||||
lblSavePath.Text = frmGameManager_lblSavePath
|
lblSavePath.Text = frmGameManager_lblSavePath
|
||||||
lblProcess.Text = frmGameManager_lblProcess
|
lblProcess.Text = frmGameManager_lblProcess
|
||||||
|
lblParameter.Text = frmGameManager_lblParameter
|
||||||
lblName.Text = frmGameManager_lblName
|
lblName.Text = frmGameManager_lblName
|
||||||
chkTimeStamp.Text = frmGameManager_chkTimeStamp
|
chkTimeStamp.Text = frmGameManager_chkTimeStamp
|
||||||
chkFolderSave.Text = frmGameManager_chkFolderSave
|
chkFolderSave.Text = frmGameManager_chkFolderSave
|
||||||
|
chkCleanFolder.Text = frmGameManager_chkCleanFolder
|
||||||
btnBackup.Text = frmGameManager_btnBackup
|
btnBackup.Text = frmGameManager_btnBackup
|
||||||
btnClose.Text = frmGameManager_btnClose
|
btnClose.Text = frmGameManager_btnClose
|
||||||
btnDelete.Text = frmGameManager_btnDelete
|
btnDelete.Text = frmGameManager_btnDelete
|
||||||
@@ -1607,6 +1699,10 @@ Public Class frmGameManager
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSavePath_TextChanged(sender As Object, e As EventArgs) Handles txtSavePath.TextChanged
|
||||||
|
VerifyCleanFolder()
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Sub tmFilterTimer_Tick(sender As Object, ByVal e As EventArgs) Handles tmFilterTimer.Tick
|
Private Sub tmFilterTimer_Tick(sender As Object, ByVal e As EventArgs) Handles tmFilterTimer.Tick
|
||||||
lstGames.DataSource = Nothing
|
lstGames.DataSource = Nothing
|
||||||
FormatAndFillList()
|
FormatAndFillList()
|
||||||
@@ -1617,5 +1713,4 @@ Public Class frmGameManager
|
|||||||
Private Sub frmGameManager_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
|
Private Sub frmGameManager_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
|
||||||
txtQuickFilter.Focus()
|
txtQuickFilter.Focus()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
+70
-23
@@ -2,8 +2,10 @@
|
|||||||
|
|
||||||
Public Class frmGameTags
|
Public Class frmGameTags
|
||||||
|
|
||||||
Dim sMonitorIDs As List(Of String)
|
Private sMonitorIDs As List(Of String)
|
||||||
Dim sGameName As String = String.Empty
|
Private sGameName As String = String.Empty
|
||||||
|
Private bNewMode As Boolean = False
|
||||||
|
Private oTagList As List(Of KeyValuePair(Of String, String))
|
||||||
|
|
||||||
Public Property IDList As List(Of String)
|
Public Property IDList As List(Of String)
|
||||||
Get
|
Get
|
||||||
@@ -23,6 +25,25 @@ Public Class frmGameTags
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Public Property NewMode As Boolean
|
||||||
|
Get
|
||||||
|
Return bNewMode
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
bNewMode = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property TagList As List(Of KeyValuePair(Of String, String))
|
||||||
|
Get
|
||||||
|
Return oTagList
|
||||||
|
End Get
|
||||||
|
Set(value As List(Of KeyValuePair(Of String, String)))
|
||||||
|
oTagList = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
|
||||||
Private Sub AddTag()
|
Private Sub AddTag()
|
||||||
Dim oData As KeyValuePair(Of String, String)
|
Dim oData As KeyValuePair(Of String, String)
|
||||||
Dim oTags As List(Of KeyValuePair(Of String, String))
|
Dim oTags As List(Of KeyValuePair(Of String, String))
|
||||||
@@ -40,7 +61,7 @@ Public Class frmGameTags
|
|||||||
oGameTags.Add(oGameTag)
|
oGameTags.Add(oGameTag)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
mgrGameTags.DoGameTagAddBatch(oGameTags)
|
If Not bNewMode Then mgrGameTags.DoGameTagAddBatch(oGameTags)
|
||||||
|
|
||||||
lstGameTags.Items.Add(oData)
|
lstGameTags.Items.Add(oData)
|
||||||
lstTags.Items.Remove(oData)
|
lstTags.Items.Remove(oData)
|
||||||
@@ -60,7 +81,7 @@ Public Class frmGameTags
|
|||||||
oGameTags.Add(oGameTag)
|
oGameTags.Add(oGameTag)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
mgrGameTags.DoGameTagAddBatch(oGameTags)
|
If Not bNewMode Then mgrGameTags.DoGameTagAddBatch(oGameTags)
|
||||||
|
|
||||||
lstGameTags.Items.Add(kp)
|
lstGameTags.Items.Add(kp)
|
||||||
lstTags.Items.Remove(kp)
|
lstTags.Items.Remove(kp)
|
||||||
@@ -86,12 +107,12 @@ Public Class frmGameTags
|
|||||||
oGameTags.Add(oGameTag)
|
oGameTags.Add(oGameTag)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
mgrGameTags.DoGameTagDelete(oGameTags)
|
If Not bNewMode Then mgrGameTags.DoGameTagDelete(oGameTags)
|
||||||
|
|
||||||
lstGameTags.Items.Remove(oData)
|
lstGameTags.Items.Remove(oData)
|
||||||
lstTags.Items.Add(oData)
|
lstTags.Items.Add(oData)
|
||||||
ElseIf lstGameTags.SelectedItems.Count > 1 Then
|
ElseIf lstGameTags.SelectedItems.Count > 1 Then
|
||||||
oTags = New List(Of KeyValuePair(Of String, String))
|
oTags = New List(Of KeyValuePair(Of String, String))
|
||||||
|
|
||||||
For Each oData In lstGameTags.SelectedItems
|
For Each oData In lstGameTags.SelectedItems
|
||||||
oTags.Add(oData)
|
oTags.Add(oData)
|
||||||
@@ -106,7 +127,7 @@ Public Class frmGameTags
|
|||||||
oGameTags.Add(oGameTag)
|
oGameTags.Add(oGameTag)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
mgrGameTags.DoGameTagDelete(oGameTags)
|
If Not bNewMode Then mgrGameTags.DoGameTagDelete(oGameTags)
|
||||||
|
|
||||||
lstGameTags.Items.Remove(kp)
|
lstGameTags.Items.Remove(kp)
|
||||||
lstTags.Items.Add(kp)
|
lstTags.Items.Add(kp)
|
||||||
@@ -121,16 +142,8 @@ Public Class frmGameTags
|
|||||||
Dim oTag As clsTag
|
Dim oTag As clsTag
|
||||||
Dim oData As KeyValuePair(Of String, String)
|
Dim oData As KeyValuePair(Of String, String)
|
||||||
|
|
||||||
'Handle Data
|
'Load Tags
|
||||||
hshTags = mgrTags.ReadTags()
|
hshTags = mgrTags.ReadTags()
|
||||||
hshGameTags = mgrGameTags.GetTagsByGameMulti(IDList)
|
|
||||||
|
|
||||||
For Each de As DictionaryEntry In hshGameTags
|
|
||||||
oTag = DirectCast(de.Value, clsTag)
|
|
||||||
If hshTags.ContainsKey(oTag.Name) Then
|
|
||||||
hshTags.Remove(oTag.Name)
|
|
||||||
End If
|
|
||||||
Next
|
|
||||||
|
|
||||||
'Handle Lists
|
'Handle Lists
|
||||||
lstTags.Items.Clear()
|
lstTags.Items.Clear()
|
||||||
@@ -141,11 +154,35 @@ Public Class frmGameTags
|
|||||||
lstGameTags.ValueMember = "Key"
|
lstGameTags.ValueMember = "Key"
|
||||||
lstGameTags.DisplayMember = "Value"
|
lstGameTags.DisplayMember = "Value"
|
||||||
|
|
||||||
For Each de As DictionaryEntry In hshGameTags
|
If bNewMode Then
|
||||||
oTag = DirectCast(de.Value, clsTag)
|
For Each kp As KeyValuePair(Of String, String) In oTagList
|
||||||
oData = New KeyValuePair(Of String, String)(oTag.ID, oTag.Name)
|
'We need to be sure the tags still exist if the "Setup Tags" form was used
|
||||||
lstGameTags.Items.Add(oData)
|
If hshTags.ContainsKey(kp.Value) Then
|
||||||
Next
|
lstGameTags.Items.Add(kp)
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
For Each kp As KeyValuePair(Of String, String) In oTagList
|
||||||
|
If hshTags.ContainsKey(kp.Value) Then
|
||||||
|
hshTags.Remove(kp.Value)
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
Else
|
||||||
|
hshGameTags = mgrGameTags.GetTagsByGameMulti(IDList)
|
||||||
|
|
||||||
|
For Each de As DictionaryEntry In hshGameTags
|
||||||
|
oTag = DirectCast(de.Value, clsTag)
|
||||||
|
If hshTags.ContainsKey(oTag.Name) Then
|
||||||
|
hshTags.Remove(oTag.Name)
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
For Each de As DictionaryEntry In hshGameTags
|
||||||
|
oTag = DirectCast(de.Value, clsTag)
|
||||||
|
oData = New KeyValuePair(Of String, String)(oTag.ID, oTag.Name)
|
||||||
|
lstGameTags.Items.Add(oData)
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
|
||||||
For Each de As DictionaryEntry In hshTags
|
For Each de As DictionaryEntry In hshTags
|
||||||
oTag = DirectCast(de.Value, clsTag)
|
oTag = DirectCast(de.Value, clsTag)
|
||||||
@@ -155,6 +192,14 @@ Public Class frmGameTags
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub BuildTagList()
|
||||||
|
Dim oData As KeyValuePair(Of String, String)
|
||||||
|
oTagList.Clear()
|
||||||
|
For Each oData In lstGameTags.Items
|
||||||
|
oTagList.Add(oData)
|
||||||
|
Next
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Sub OpenTags()
|
Private Sub OpenTags()
|
||||||
Dim frm As New frmTags
|
Dim frm As New frmTags
|
||||||
frm.ShowDialog()
|
frm.ShowDialog()
|
||||||
@@ -185,6 +230,7 @@ Public Class frmGameTags
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub btnClose_Click(sender As Object, e As EventArgs) Handles btnClose.Click
|
Private Sub btnClose_Click(sender As Object, e As EventArgs) Handles btnClose.Click
|
||||||
|
If bNewMode Then BuildTagList()
|
||||||
Me.Close()
|
Me.Close()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -197,6 +243,7 @@ Public Class frmGameTags
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub btnOpenTags_Click(sender As Object, e As EventArgs) Handles btnOpenTags.Click
|
Private Sub btnOpenTags_Click(sender As Object, e As EventArgs) Handles btnOpenTags.Click
|
||||||
|
If bNewMode Then BuildTagList()
|
||||||
OpenTags()
|
OpenTags()
|
||||||
End Sub
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
@@ -108,7 +108,7 @@ Public Class frmIncludeExclude
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
sNewPath = mgrCommon.OpenFolderBrowser(frmIncludeExclude_BrowseSaveFolder, sDefaultFolder, False)
|
sNewPath = mgrCommon.OpenFolderBrowser("IE_Save_Path", frmIncludeExclude_BrowseSaveFolder, sDefaultFolder, False, False)
|
||||||
|
|
||||||
If sNewPath <> String.Empty Then txtRootFolder.Text = sNewPath
|
If sNewPath <> String.Empty Then txtRootFolder.Text = sNewPath
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
Generated
+16
-15
@@ -75,7 +75,6 @@ Partial Class frmMain
|
|||||||
Me.gMonHelpAbout = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonHelpAbout = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.gMonNotification = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonNotification = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.pbIcon = New System.Windows.Forms.PictureBox()
|
Me.pbIcon = New System.Windows.Forms.PictureBox()
|
||||||
Me.btnLogToggle = New System.Windows.Forms.Button()
|
|
||||||
Me.lblGameTitle = New System.Windows.Forms.Label()
|
Me.lblGameTitle = New System.Windows.Forms.Label()
|
||||||
Me.lblLastAction = New System.Windows.Forms.Label()
|
Me.lblLastAction = New System.Windows.Forms.Label()
|
||||||
Me.lblLastActionTitle = New System.Windows.Forms.Label()
|
Me.lblLastActionTitle = New System.Windows.Forms.Label()
|
||||||
@@ -222,6 +221,9 @@ Partial Class frmMain
|
|||||||
'
|
'
|
||||||
'txtLog
|
'txtLog
|
||||||
'
|
'
|
||||||
|
Me.txtLog.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
Me.txtLog.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
Me.txtLog.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
Me.txtLog.Location = New System.Drawing.Point(12, 184)
|
Me.txtLog.Location = New System.Drawing.Point(12, 184)
|
||||||
Me.txtLog.MaxLength = 524288
|
Me.txtLog.MaxLength = 524288
|
||||||
@@ -430,17 +432,11 @@ Partial Class frmMain
|
|||||||
Me.pbIcon.TabIndex = 9
|
Me.pbIcon.TabIndex = 9
|
||||||
Me.pbIcon.TabStop = False
|
Me.pbIcon.TabStop = False
|
||||||
'
|
'
|
||||||
'btnLogToggle
|
|
||||||
'
|
|
||||||
Me.btnLogToggle.Location = New System.Drawing.Point(437, 155)
|
|
||||||
Me.btnLogToggle.Name = "btnLogToggle"
|
|
||||||
Me.btnLogToggle.Size = New System.Drawing.Size(75, 23)
|
|
||||||
Me.btnLogToggle.TabIndex = 7
|
|
||||||
Me.btnLogToggle.Text = "Show &Log"
|
|
||||||
Me.btnLogToggle.UseVisualStyleBackColor = True
|
|
||||||
'
|
|
||||||
'lblGameTitle
|
'lblGameTitle
|
||||||
'
|
'
|
||||||
|
Me.lblGameTitle.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.lblGameTitle.AutoEllipsis = True
|
||||||
Me.lblGameTitle.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
Me.lblGameTitle.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
Me.lblGameTitle.Location = New System.Drawing.Point(66, 36)
|
Me.lblGameTitle.Location = New System.Drawing.Point(66, 36)
|
||||||
Me.lblGameTitle.Name = "lblGameTitle"
|
Me.lblGameTitle.Name = "lblGameTitle"
|
||||||
@@ -450,6 +446,8 @@ Partial Class frmMain
|
|||||||
'
|
'
|
||||||
'lblLastAction
|
'lblLastAction
|
||||||
'
|
'
|
||||||
|
Me.lblLastAction.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
Me.lblLastAction.AutoEllipsis = True
|
Me.lblLastAction.AutoEllipsis = True
|
||||||
Me.lblLastAction.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
Me.lblLastAction.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
Me.lblLastAction.Location = New System.Drawing.Point(12, 165)
|
Me.lblLastAction.Location = New System.Drawing.Point(12, 165)
|
||||||
@@ -480,7 +478,8 @@ Partial Class frmMain
|
|||||||
'
|
'
|
||||||
'btnCancelOperation
|
'btnCancelOperation
|
||||||
'
|
'
|
||||||
Me.btnCancelOperation.Location = New System.Drawing.Point(437, 126)
|
Me.btnCancelOperation.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.btnCancelOperation.Location = New System.Drawing.Point(437, 155)
|
||||||
Me.btnCancelOperation.Name = "btnCancelOperation"
|
Me.btnCancelOperation.Name = "btnCancelOperation"
|
||||||
Me.btnCancelOperation.Size = New System.Drawing.Size(75, 23)
|
Me.btnCancelOperation.Size = New System.Drawing.Size(75, 23)
|
||||||
Me.btnCancelOperation.TabIndex = 6
|
Me.btnCancelOperation.TabIndex = 6
|
||||||
@@ -489,6 +488,8 @@ Partial Class frmMain
|
|||||||
'
|
'
|
||||||
'lblStatus1
|
'lblStatus1
|
||||||
'
|
'
|
||||||
|
Me.lblStatus1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
Me.lblStatus1.AutoEllipsis = True
|
Me.lblStatus1.AutoEllipsis = True
|
||||||
Me.lblStatus1.Location = New System.Drawing.Point(66, 58)
|
Me.lblStatus1.Location = New System.Drawing.Point(66, 58)
|
||||||
Me.lblStatus1.Name = "lblStatus1"
|
Me.lblStatus1.Name = "lblStatus1"
|
||||||
@@ -497,6 +498,8 @@ Partial Class frmMain
|
|||||||
'
|
'
|
||||||
'lblStatus2
|
'lblStatus2
|
||||||
'
|
'
|
||||||
|
Me.lblStatus2.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
Me.lblStatus2.AutoEllipsis = True
|
Me.lblStatus2.AutoEllipsis = True
|
||||||
Me.lblStatus2.Location = New System.Drawing.Point(66, 74)
|
Me.lblStatus2.Location = New System.Drawing.Point(66, 74)
|
||||||
Me.lblStatus2.Name = "lblStatus2"
|
Me.lblStatus2.Name = "lblStatus2"
|
||||||
@@ -505,6 +508,8 @@ Partial Class frmMain
|
|||||||
'
|
'
|
||||||
'lblStatus3
|
'lblStatus3
|
||||||
'
|
'
|
||||||
|
Me.lblStatus3.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
Me.lblStatus3.AutoEllipsis = True
|
Me.lblStatus3.AutoEllipsis = True
|
||||||
Me.lblStatus3.Location = New System.Drawing.Point(66, 90)
|
Me.lblStatus3.Location = New System.Drawing.Point(66, 90)
|
||||||
Me.lblStatus3.Name = "lblStatus3"
|
Me.lblStatus3.Name = "lblStatus3"
|
||||||
@@ -533,16 +538,13 @@ Partial Class frmMain
|
|||||||
Me.Controls.Add(Me.lblLastActionTitle)
|
Me.Controls.Add(Me.lblLastActionTitle)
|
||||||
Me.Controls.Add(Me.lblLastAction)
|
Me.Controls.Add(Me.lblLastAction)
|
||||||
Me.Controls.Add(Me.lblGameTitle)
|
Me.Controls.Add(Me.lblGameTitle)
|
||||||
Me.Controls.Add(Me.btnLogToggle)
|
|
||||||
Me.Controls.Add(Me.pbIcon)
|
Me.Controls.Add(Me.pbIcon)
|
||||||
Me.Controls.Add(Me.gMonStatusStrip)
|
Me.Controls.Add(Me.gMonStatusStrip)
|
||||||
Me.Controls.Add(Me.gMonMainMenu)
|
Me.Controls.Add(Me.gMonMainMenu)
|
||||||
Me.Controls.Add(Me.txtLog)
|
Me.Controls.Add(Me.txtLog)
|
||||||
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
|
|
||||||
Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
|
Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
|
||||||
Me.KeyPreview = True
|
Me.KeyPreview = True
|
||||||
Me.MainMenuStrip = Me.gMonMainMenu
|
Me.MainMenuStrip = Me.gMonMainMenu
|
||||||
Me.MaximizeBox = False
|
|
||||||
Me.MinimizeBox = False
|
Me.MinimizeBox = False
|
||||||
Me.Name = "frmMain"
|
Me.Name = "frmMain"
|
||||||
Me.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide
|
Me.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide
|
||||||
@@ -585,7 +587,6 @@ Partial Class frmMain
|
|||||||
Friend WithEvents gMonTraySetupGameManager As System.Windows.Forms.ToolStripMenuItem
|
Friend WithEvents gMonTraySetupGameManager As System.Windows.Forms.ToolStripMenuItem
|
||||||
Friend WithEvents gMonTraySetupCustomVariables As System.Windows.Forms.ToolStripMenuItem
|
Friend WithEvents gMonTraySetupCustomVariables As System.Windows.Forms.ToolStripMenuItem
|
||||||
Friend WithEvents pbIcon As System.Windows.Forms.PictureBox
|
Friend WithEvents pbIcon As System.Windows.Forms.PictureBox
|
||||||
Friend WithEvents btnLogToggle As System.Windows.Forms.Button
|
|
||||||
Friend WithEvents lblGameTitle As System.Windows.Forms.Label
|
Friend WithEvents lblGameTitle As System.Windows.Forms.Label
|
||||||
Friend WithEvents lblLastAction As System.Windows.Forms.Label
|
Friend WithEvents lblLastAction As System.Windows.Forms.Label
|
||||||
Friend WithEvents lblLastActionTitle As System.Windows.Forms.Label
|
Friend WithEvents lblLastActionTitle As System.Windows.Forms.Label
|
||||||
|
|||||||
+249
-94
@@ -1,4 +1,5 @@
|
|||||||
Imports GBM.My.Resources
|
Imports GBM.My.Resources
|
||||||
|
Imports System.IO
|
||||||
|
|
||||||
'Name: frmMain
|
'Name: frmMain
|
||||||
'Description: Game Backup Monitor Main Screen
|
'Description: Game Backup Monitor Main Screen
|
||||||
@@ -38,14 +39,18 @@ Public Class frmMain
|
|||||||
Private sPriorPath As String
|
Private sPriorPath As String
|
||||||
Private sPriorCompany As String
|
Private sPriorCompany As String
|
||||||
Private sPriorVersion As String
|
Private sPriorVersion As String
|
||||||
Private iFormHeight As Integer
|
Private iRestoreTimeOut As Integer
|
||||||
Private iLogSpacer As Integer
|
Private wState As FormWindowState = FormWindowState.Normal
|
||||||
|
|
||||||
'Developer Debug Flags
|
'Developer Debug Flags
|
||||||
Private bProcessDebugMode As Boolean = False
|
Private bProcessDebugMode As Boolean = False
|
||||||
|
|
||||||
WithEvents oFileWatcher As New System.IO.FileSystemWatcher
|
WithEvents oFileWatcher As New FileSystemWatcher
|
||||||
|
|
||||||
|
'Timers - There may only be one System.Windows.Forms.Timer and it must be tmScanTimer.
|
||||||
WithEvents tmScanTimer As New Timer
|
WithEvents tmScanTimer As New Timer
|
||||||
|
WithEvents tmRestoreCheck As New System.Timers.Timer
|
||||||
|
WithEvents tmFileWatcherQueue As New System.Timers.Timer
|
||||||
|
|
||||||
Public WithEvents oProcess As New mgrProcesses
|
Public WithEvents oProcess As New mgrProcesses
|
||||||
Public WithEvents oBackup As New mgrBackup
|
Public WithEvents oBackup As New mgrBackup
|
||||||
@@ -53,6 +58,7 @@ Public Class frmMain
|
|||||||
Public hshScanList As Hashtable
|
Public hshScanList As Hashtable
|
||||||
Public oSettings As New mgrSettings
|
Public oSettings As New mgrSettings
|
||||||
|
|
||||||
|
Delegate Sub UpdateNotifierCallBack(ByVal iCount As Integer)
|
||||||
Delegate Sub UpdateLogCallBack(ByVal sLogUpdate As String, ByVal bTrayUpdate As Boolean, ByVal objIcon As System.Windows.Forms.ToolTipIcon, ByVal bTimeStamp As Boolean)
|
Delegate Sub UpdateLogCallBack(ByVal sLogUpdate As String, ByVal bTrayUpdate As Boolean, ByVal objIcon As System.Windows.Forms.ToolTipIcon, ByVal bTimeStamp As Boolean)
|
||||||
Delegate Sub WorkingGameInfoCallBack(ByVal sTitle As String, ByVal sStatus1 As String, ByVal sStatus2 As String, ByVal sStatus3 As String)
|
Delegate Sub WorkingGameInfoCallBack(ByVal sTitle As String, ByVal sStatus1 As String, ByVal sStatus2 As String, ByVal sStatus3 As String)
|
||||||
Delegate Sub UpdateStatusCallBack(ByVal sStatus As String)
|
Delegate Sub UpdateStatusCallBack(ByVal sStatus As String)
|
||||||
@@ -68,7 +74,7 @@ Public Class frmMain
|
|||||||
Me.Invoke(d, New Object() {sMessage})
|
Me.Invoke(d, New Object() {sMessage})
|
||||||
Else
|
Else
|
||||||
Dim sPattern As String = "h:mm tt"
|
Dim sPattern As String = "h:mm tt"
|
||||||
lblLastActionTitle.Visible = True
|
lblLastActionTitle.Visible = True
|
||||||
lblLastAction.Text = sMessage.TrimEnd(".") & " " & mgrCommon.FormatString(frmMain_AtTime, TimeOfDay.ToString(sPattern))
|
lblLastAction.Text = sMessage.TrimEnd(".") & " " & mgrCommon.FormatString(frmMain_AtTime, TimeOfDay.ToString(sPattern))
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
@@ -79,7 +85,7 @@ Public Class frmMain
|
|||||||
Dim sStatus3 As String
|
Dim sStatus3 As String
|
||||||
|
|
||||||
'Build Info
|
'Build Info
|
||||||
sStatus1 = IO.Path.GetFileName(oRestoreInfo.FileName)
|
sStatus1 = Path.GetFileName(oRestoreInfo.FileName)
|
||||||
sStatus2 = mgrCommon.FormatString(frmMain_UpdatedBy, New String() {oRestoreInfo.UpdatedBy, oRestoreInfo.DateUpdated})
|
sStatus2 = mgrCommon.FormatString(frmMain_UpdatedBy, New String() {oRestoreInfo.UpdatedBy, oRestoreInfo.DateUpdated})
|
||||||
If oRestoreInfo.AbsolutePath Then
|
If oRestoreInfo.AbsolutePath Then
|
||||||
sStatus3 = oRestoreInfo.RestorePath
|
sStatus3 = oRestoreInfo.RestorePath
|
||||||
@@ -101,7 +107,7 @@ Public Class frmMain
|
|||||||
If oGame.AbsolutePath Then
|
If oGame.AbsolutePath Then
|
||||||
sStatus2 = oGame.Path
|
sStatus2 = oGame.Path
|
||||||
Else
|
Else
|
||||||
sStatus2 = oGame.ProcessPath & System.IO.Path.DirectorySeparatorChar & oGame.Path
|
sStatus2 = oGame.ProcessPath & Path.DirectorySeparatorChar & oGame.Path
|
||||||
End If
|
End If
|
||||||
sStatus3 = String.Empty
|
sStatus3 = String.Empty
|
||||||
|
|
||||||
@@ -154,7 +160,7 @@ Public Class frmMain
|
|||||||
OperationEnded()
|
OperationEnded()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub ExecuteRestore(ByVal oRestoreList As List(Of clsBackup))
|
Private Sub ExecuteRestore(ByVal oRestoreList As List(Of clsBackup))
|
||||||
oRestore.DoRestore(oRestoreList)
|
oRestore.DoRestore(oRestoreList)
|
||||||
OperationEnded()
|
OperationEnded()
|
||||||
End Sub
|
End Sub
|
||||||
@@ -181,7 +187,7 @@ Public Class frmMain
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If bPathVerified Then
|
If bPathVerified Then
|
||||||
If oRestore.CheckRestorePrereq(oRestoreInfo) Then
|
If oRestore.CheckRestorePrereq(oRestoreInfo, oGame.CleanFolder) Then
|
||||||
oReadyList.Add(oRestoreInfo)
|
oReadyList.Add(oRestoreInfo)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -315,7 +321,7 @@ Public Class frmMain
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If bDoBackup Then
|
If bDoBackup Then
|
||||||
If Not oBackup.CheckBackupPrereq(oProcess.GameInfo) Then
|
If Not oBackup.CheckBackupPrereq(oProcess.GameInfo) Then
|
||||||
SetLastAction(mgrCommon.FormatString(frmMain_ErrorBackupCancel, oProcess.GameInfo.CroppedName))
|
SetLastAction(mgrCommon.FormatString(frmMain_ErrorBackupCancel, oProcess.GameInfo.CroppedName))
|
||||||
OperationEnded()
|
OperationEnded()
|
||||||
Else
|
Else
|
||||||
@@ -324,19 +330,21 @@ Public Class frmMain
|
|||||||
Dim trd As New System.Threading.Thread(AddressOf ExecuteBackup)
|
Dim trd As New System.Threading.Thread(AddressOf ExecuteBackup)
|
||||||
trd.IsBackground = True
|
trd.IsBackground = True
|
||||||
trd.Start(oReadyList)
|
trd.Start(oReadyList)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CheckRestore()
|
Private Sub UpdateNotifier(ByVal iCount As Integer)
|
||||||
Dim slRestoreData As SortedList = mgrRestore.CompareManifests()
|
'Thread Safe
|
||||||
Dim sNotification As String
|
If Me.InvokeRequired = True Then
|
||||||
|
Dim d As New UpdateNotifierCallBack(AddressOf UpdateNotifier)
|
||||||
If slRestoreData.Count > 0 Then
|
Me.Invoke(d, New Object() {iCount})
|
||||||
If slRestoreData.Count > 1 Then
|
Else
|
||||||
sNotification = mgrCommon.FormatString(frmMain_NewSaveNotificationMulti, slRestoreData.Count)
|
Dim sNotification As String
|
||||||
|
If iCount > 1 Then
|
||||||
|
sNotification = mgrCommon.FormatString(frmMain_NewSaveNotificationMulti, iCount)
|
||||||
Else
|
Else
|
||||||
sNotification = mgrCommon.FormatString(frmMain_NewSaveNotificationSingle, slRestoreData.Count)
|
sNotification = mgrCommon.FormatString(frmMain_NewSaveNotificationSingle, iCount)
|
||||||
End If
|
End If
|
||||||
gMonNotification.Image = Icon_Inbox
|
gMonNotification.Image = Icon_Inbox
|
||||||
gMonTrayNotification.Image = Icon_Inbox
|
gMonTrayNotification.Image = Icon_Inbox
|
||||||
@@ -347,6 +355,149 @@ Public Class frmMain
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub StartRestoreCheck()
|
||||||
|
iRestoreTimeOut = -1
|
||||||
|
tmRestoreCheck.Interval = 60000
|
||||||
|
tmRestoreCheck.AutoReset = True
|
||||||
|
tmRestoreCheck.Start()
|
||||||
|
AutoRestoreCheck()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub AutoRestoreCheck()
|
||||||
|
Dim slRestoreData As SortedList = mgrRestore.CompareManifests()
|
||||||
|
Dim sNotReady As New List(Of String)
|
||||||
|
Dim sNotInstalled As New List(Of String)
|
||||||
|
Dim sNoCheckSum As New List(Of String)
|
||||||
|
Dim oBackup As clsBackup
|
||||||
|
Dim sFileName As String
|
||||||
|
Dim sExtractPath As String
|
||||||
|
Dim bFinished As Boolean = True
|
||||||
|
Dim hshRestore As Hashtable
|
||||||
|
Dim hshGames As Hashtable
|
||||||
|
Dim oGame As clsGame
|
||||||
|
Dim sGame As String
|
||||||
|
|
||||||
|
'Shut down the timer and bail out if there's nothing to do
|
||||||
|
If slRestoreData.Count = 0 Then
|
||||||
|
tmRestoreCheck.Stop()
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
If oSettings.AutoMark Or oSettings.AutoRestore Then
|
||||||
|
'Increment Timer
|
||||||
|
iRestoreTimeOut += 1
|
||||||
|
|
||||||
|
'Check backup files
|
||||||
|
For Each de As DictionaryEntry In slRestoreData
|
||||||
|
oBackup = DirectCast(de.Value, clsBackup)
|
||||||
|
|
||||||
|
'Check if backup file is ready to restore
|
||||||
|
If oBackup.CheckSum <> String.Empty Then
|
||||||
|
sFileName = oSettings.BackupFolder & Path.DirectorySeparatorChar & oBackup.FileName
|
||||||
|
If mgrHash.Generate_SHA256_Hash(sFileName) <> oBackup.CheckSum Then
|
||||||
|
sNotReady.Add(de.Key)
|
||||||
|
bFinished = False
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
sNoCheckSum.Add(de.Key)
|
||||||
|
End If
|
||||||
|
|
||||||
|
'Check if the restore location exists, if not we assume the game is not installed and should be auto-marked.
|
||||||
|
hshGames = mgrMonitorList.DoListGetbyName(de.Key)
|
||||||
|
If hshGames.Count = 1 Then
|
||||||
|
oGame = DirectCast(hshGames(0), clsGame)
|
||||||
|
mgrRestore.DoPathOverride(oBackup, oGame)
|
||||||
|
If oGame.ProcessPath <> String.Empty Then
|
||||||
|
oBackup.RelativeRestorePath = oGame.ProcessPath & Path.DirectorySeparatorChar & oBackup.RestorePath
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
If oBackup.AbsolutePath Then
|
||||||
|
sExtractPath = oBackup.RestorePath
|
||||||
|
Else
|
||||||
|
sExtractPath = oBackup.RelativeRestorePath
|
||||||
|
End If
|
||||||
|
|
||||||
|
If Not Directory.Exists(sExtractPath) Then
|
||||||
|
If oSettings.AutoMark Then
|
||||||
|
If mgrManifest.DoGlobalManifestCheck(de.Key, mgrSQLite.Database.Local) Then
|
||||||
|
mgrManifest.DoManifestUpdateByName(de.Value, mgrSQLite.Database.Local)
|
||||||
|
Else
|
||||||
|
mgrManifest.DoManifestAdd(de.Value, mgrSQLite.Database.Local)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
sNotInstalled.Add(de.Key)
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
'Remove any backup files that are not ready
|
||||||
|
For Each s As String In sNotReady
|
||||||
|
slRestoreData.Remove(s)
|
||||||
|
UpdateLog(mgrCommon.FormatString(frmMain_RestoreNotReady, s), False, ToolTipIcon.Info, True)
|
||||||
|
Next
|
||||||
|
|
||||||
|
'Remove any backup files that should not be automatically restored
|
||||||
|
For Each s As String In sNotInstalled
|
||||||
|
slRestoreData.Remove(s)
|
||||||
|
If oSettings.AutoMark Then
|
||||||
|
UpdateLog(mgrCommon.FormatString(frmMain_AutoMark, s), False, ToolTipIcon.Info, True)
|
||||||
|
Else
|
||||||
|
UpdateLog(mgrCommon.FormatString(frmMain_NoAutoMark, s), False, ToolTipIcon.Info, True)
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
For Each s As String In sNoCheckSum
|
||||||
|
slRestoreData.Remove(s)
|
||||||
|
UpdateLog(mgrCommon.FormatString(frmMain_NoCheckSum, s), False, ToolTipIcon.Info, True)
|
||||||
|
Next
|
||||||
|
|
||||||
|
'Automatically restore backup files
|
||||||
|
If oSettings.AutoRestore Then
|
||||||
|
If slRestoreData.Count > 0 Then
|
||||||
|
hshRestore = New Hashtable
|
||||||
|
sGame = String.Empty
|
||||||
|
For Each de As DictionaryEntry In slRestoreData
|
||||||
|
hshGames = mgrMonitorList.DoListGetbyName(de.Key)
|
||||||
|
If hshGames.Count = 1 Then
|
||||||
|
oGame = DirectCast(hshGames(0), clsGame)
|
||||||
|
sGame = oGame.CroppedName
|
||||||
|
hshRestore.Add(oGame, de.Value)
|
||||||
|
Else
|
||||||
|
UpdateLog(mgrCommon.FormatString(frmMain_AutoRestoreFailure, de.Key), False, ToolTipIcon.Info, True)
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
'Handle notifications
|
||||||
|
If oSettings.RestoreOnLaunch Then
|
||||||
|
If slRestoreData.Count > 1 Then
|
||||||
|
UpdateLog(mgrCommon.FormatString(frmMain_RestoreNotificationMulti, slRestoreData.Count), True, ToolTipIcon.Info, True)
|
||||||
|
Else
|
||||||
|
UpdateLog(mgrCommon.FormatString(frmMain_RestoreNotificationSingle, sGame), True, ToolTipIcon.Info, True)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
RunRestore(hshRestore)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
'Shutdown if we are finished
|
||||||
|
If bFinished Then
|
||||||
|
tmRestoreCheck.Stop()
|
||||||
|
End If
|
||||||
|
|
||||||
|
'Time out after 15 minutes
|
||||||
|
If iRestoreTimeOut = 15 Then
|
||||||
|
tmRestoreCheck.Stop()
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
'Update the menu notifier if we aren't using auto restore
|
||||||
|
If oSettings.RestoreOnLaunch And Not oSettings.AutoRestore Then
|
||||||
|
If slRestoreData.Count > 0 Then
|
||||||
|
UpdateNotifier(slRestoreData.Count)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
'Functions handling the display of game information
|
'Functions handling the display of game information
|
||||||
Private Sub SetIcon()
|
Private Sub SetIcon()
|
||||||
Dim sIcon As String
|
Dim sIcon As String
|
||||||
@@ -364,7 +515,7 @@ Public Class frmMain
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
Try
|
Try
|
||||||
fbBrowser.InitialDirectory = IO.Path.GetDirectoryName(oProcess.FoundProcess.MainModule.FileName)
|
fbBrowser.InitialDirectory = Path.GetDirectoryName(oProcess.FoundProcess.MainModule.FileName)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
fbBrowser.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
|
fbBrowser.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
|
||||||
End Try
|
End Try
|
||||||
@@ -372,7 +523,7 @@ Public Class frmMain
|
|||||||
|
|
||||||
If fbBrowser.ShowDialog() = Windows.Forms.DialogResult.OK Then
|
If fbBrowser.ShowDialog() = Windows.Forms.DialogResult.OK Then
|
||||||
sIcon = fbBrowser.FileName
|
sIcon = fbBrowser.FileName
|
||||||
If IO.File.Exists(sIcon) Then
|
If File.Exists(sIcon) Then
|
||||||
oProcess.GameInfo.Icon = sIcon
|
oProcess.GameInfo.Icon = sIcon
|
||||||
pbIcon.Image = Image.FromFile(sIcon)
|
pbIcon.Image = Image.FromFile(sIcon)
|
||||||
mgrMonitorList.DoListUpdate(oProcess.GameInfo)
|
mgrMonitorList.DoListUpdate(oProcess.GameInfo)
|
||||||
@@ -382,7 +533,7 @@ Public Class frmMain
|
|||||||
|
|
||||||
Private Sub ResetGameInfo(Optional ByVal bKeepInfo As Boolean = False)
|
Private Sub ResetGameInfo(Optional ByVal bKeepInfo As Boolean = False)
|
||||||
If bKeepInfo And Not oProcess.GameInfo Is Nothing Then
|
If bKeepInfo And Not oProcess.GameInfo Is Nothing Then
|
||||||
lblGameTitle.Text = mgrCommon.FormatString(frmMain_LastGame, oProcess.GameInfo.CroppedName)
|
lblGameTitle.Text = mgrCommon.FormatString(frmMain_LastGame, oProcess.GameInfo.Name)
|
||||||
pbIcon.Image = oPriorImage
|
pbIcon.Image = oPriorImage
|
||||||
lblStatus1.Text = sPriorPath
|
lblStatus1.Text = sPriorPath
|
||||||
lblStatus2.Text = sPriorCompany
|
lblStatus2.Text = sPriorCompany
|
||||||
@@ -447,7 +598,7 @@ Public Class frmMain
|
|||||||
Else
|
Else
|
||||||
bAllowIcon = True
|
bAllowIcon = True
|
||||||
bAllowDetails = True
|
bAllowDetails = True
|
||||||
lblGameTitle.Text = oProcess.GameInfo.CroppedName
|
lblGameTitle.Text = oProcess.GameInfo.Name
|
||||||
|
|
||||||
Try
|
Try
|
||||||
Dim ic As Icon = System.Drawing.Icon.ExtractAssociatedIcon(oProcess.FoundProcess.MainModule.FileName)
|
Dim ic As Icon = System.Drawing.Icon.ExtractAssociatedIcon(oProcess.FoundProcess.MainModule.FileName)
|
||||||
@@ -463,7 +614,7 @@ Public Class frmMain
|
|||||||
End Try
|
End Try
|
||||||
|
|
||||||
'Check for a custom icon & details
|
'Check for a custom icon & details
|
||||||
If IO.File.Exists(oProcess.GameInfo.Icon) Then
|
If File.Exists(oProcess.GameInfo.Icon) Then
|
||||||
pbIcon.Image = Image.FromFile(oProcess.GameInfo.Icon)
|
pbIcon.Image = Image.FromFile(oProcess.GameInfo.Icon)
|
||||||
End If
|
End If
|
||||||
If sFileName = String.Empty Then
|
If sFileName = String.Empty Then
|
||||||
@@ -652,6 +803,7 @@ Public Class frmMain
|
|||||||
bProcessDebugMode = bDebugEnable
|
bProcessDebugMode = bDebugEnable
|
||||||
mgrCommon.ShowMessage(frmMain_CommandSucess, MsgBoxStyle.Exclamation)
|
mgrCommon.ShowMessage(frmMain_CommandSucess, MsgBoxStyle.Exclamation)
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
Case Else
|
Case Else
|
||||||
mgrCommon.ShowMessage(frmMain_ErrorCommandInvalid, sMainCommand, MsgBoxStyle.Exclamation)
|
mgrCommon.ShowMessage(frmMain_ErrorCommandInvalid, sMainCommand, MsgBoxStyle.Exclamation)
|
||||||
End Select
|
End Select
|
||||||
@@ -664,9 +816,11 @@ Public Class frmMain
|
|||||||
Dim sVersion As String = My.Application.Info.Version.Major & "." & My.Application.Info.Version.Minor & "." & My.Application.Info.Version.Build
|
Dim sVersion As String = My.Application.Info.Version.Major & "." & My.Application.Info.Version.Minor & "." & My.Application.Info.Version.Build
|
||||||
Dim sProcessType = [Enum].GetName(GetType(System.Reflection.ProcessorArchitecture), iProcessType)
|
Dim sProcessType = [Enum].GetName(GetType(System.Reflection.ProcessorArchitecture), iProcessType)
|
||||||
Dim sRevision As String = My.Application.Info.Version.Revision
|
Dim sRevision As String = My.Application.Info.Version.Revision
|
||||||
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
|
Dim sSqliteVersion As String = oDatabase.ReportVersion
|
||||||
Dim sConstCopyright As String = Chr(169) & mgrCommon.FormatString(App_Copyright, Now.Year.ToString)
|
Dim sConstCopyright As String = Chr(169) & mgrCommon.FormatString(App_Copyright, Now.Year.ToString)
|
||||||
|
|
||||||
mgrCommon.ShowMessage(frmMain_About, New String() {sVersion, sProcessType, sRevision, sConstCopyright}, MsgBoxStyle.Information)
|
mgrCommon.ShowMessage(frmMain_About, New String() {sVersion, sProcessType, sRevision, sSqliteVersion, sConstCopyright}, MsgBoxStyle.Information)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub OpenTags()
|
Private Sub OpenTags()
|
||||||
@@ -756,8 +910,8 @@ Public Class frmMain
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CheckForNewBackups()
|
Private Sub CheckForNewBackups()
|
||||||
If oSettings.RestoreOnLaunch Then
|
If oSettings.RestoreOnLaunch Or oSettings.AutoRestore Or oSettings.AutoMark Then
|
||||||
CheckRestore()
|
StartRestoreCheck()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -770,32 +924,37 @@ Public Class frmMain
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub StartSyncWatcher()
|
Private Sub StartSyncWatcher()
|
||||||
If oSettings.Sync Then
|
oFileWatcher.EnableRaisingEvents = True
|
||||||
oFileWatcher.EnableRaisingEvents = True
|
|
||||||
End If
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub StopSyncWatcher()
|
Private Sub StopSyncWatcher()
|
||||||
If oSettings.Sync Then
|
oFileWatcher.EnableRaisingEvents = False
|
||||||
oFileWatcher.EnableRaisingEvents = False
|
|
||||||
End If
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub SetupSyncWatcher()
|
Private Sub SetupSyncWatcher()
|
||||||
If oSettings.Sync Then
|
oFileWatcher.Path = oSettings.BackupFolder
|
||||||
oFileWatcher.Path = oSettings.BackupFolder
|
oFileWatcher.Filter = "gbm.s3db"
|
||||||
oFileWatcher.Filter = "gbm.s3db"
|
oFileWatcher.NotifyFilter = NotifyFilters.LastWrite
|
||||||
oFileWatcher.NotifyFilter = IO.NotifyFilters.LastWrite
|
|
||||||
End If
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub HandleSyncWatcher() Handles oFileWatcher.Changed
|
Private Sub QueueSyncWatcher() Handles oFileWatcher.Changed
|
||||||
|
tmFileWatcherQueue.Stop()
|
||||||
|
tmFileWatcherQueue.AutoReset = False
|
||||||
|
tmFileWatcherQueue.Interval = 30000
|
||||||
|
tmFileWatcherQueue.Start()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub HandleSyncWatcher() Handles tmFileWatcherQueue.Elapsed
|
||||||
|
tmFileWatcherQueue.Stop()
|
||||||
|
StopSyncWatcher()
|
||||||
If oSettings.Sync Then
|
If oSettings.Sync Then
|
||||||
UpdateLog(frmMain_MasterListChanged, False, ToolTipIcon.Info, True)
|
UpdateLog(frmMain_MasterListChanged, False, ToolTipIcon.Info, True)
|
||||||
SyncGameSettings()
|
SyncGameSettings()
|
||||||
LoadGameSettings()
|
LoadGameSettings()
|
||||||
CheckForNewBackups()
|
|
||||||
End If
|
End If
|
||||||
|
CheckForNewBackups()
|
||||||
|
StartSyncWatcher()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub SyncGameSettings()
|
Private Sub SyncGameSettings()
|
||||||
@@ -869,32 +1028,17 @@ Public Class frmMain
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
'Functions that handle buttons, menus and other GUI features on this form
|
'Functions that handle buttons, menus and other GUI features on this form
|
||||||
Private Sub ToggleLog()
|
|
||||||
If bLogToggle = False Then
|
|
||||||
txtLog.Visible = True
|
|
||||||
Me.Size = New System.Drawing.Size(Me.Size.Width, iFormHeight)
|
|
||||||
bLogToggle = True
|
|
||||||
btnLogToggle.Text = frmMain_btnToggleLog_Hide
|
|
||||||
txtLog.Select(txtLog.TextLength, 0)
|
|
||||||
txtLog.ScrollToCaret()
|
|
||||||
Else
|
|
||||||
txtLog.Visible = False
|
|
||||||
Me.Size = New System.Drawing.Size(Me.Size.Width, Me.Size.Height - (txtLog.Height + iLogSpacer))
|
|
||||||
bLogToggle = False
|
|
||||||
btnLogToggle.Text = frmMain_btnToggleLog_Show
|
|
||||||
End If
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub ToggleState()
|
Private Sub ToggleState()
|
||||||
'Toggle State with Tray Clicks
|
'Toggle State with Tray Clicks
|
||||||
If Not bShowToggle Then
|
If Not bShowToggle Then
|
||||||
bShowToggle = True
|
bShowToggle = True
|
||||||
Me.Visible = True
|
Me.WindowState = wState
|
||||||
Me.ShowInTaskbar = True
|
Me.ShowInTaskbar = True
|
||||||
Me.Focus()
|
Me.Focus()
|
||||||
Else
|
Else
|
||||||
bShowToggle = False
|
bShowToggle = False
|
||||||
Me.Visible = False
|
wState = Me.WindowState
|
||||||
|
Me.WindowState = FormWindowState.Minimized
|
||||||
Me.ShowInTaskbar = False
|
Me.ShowInTaskbar = False
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1077,7 +1221,7 @@ Public Class frmMain
|
|||||||
txtLog.ScrollToCaret()
|
txtLog.ScrollToCaret()
|
||||||
gMonTray.BalloonTipText = sLogUpdate
|
gMonTray.BalloonTipText = sLogUpdate
|
||||||
gMonTray.BalloonTipIcon = objIcon
|
gMonTray.BalloonTipIcon = objIcon
|
||||||
If bTrayUpdate Then gMonTray.ShowBalloonTip(5000)
|
If bTrayUpdate Then gMonTray.ShowBalloonTip(10000)
|
||||||
End If
|
End If
|
||||||
Application.DoEvents()
|
Application.DoEvents()
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1091,7 +1235,7 @@ Public Class frmMain
|
|||||||
Private Sub SaveLog()
|
Private Sub SaveLog()
|
||||||
Dim sLocation As String
|
Dim sLocation As String
|
||||||
|
|
||||||
sLocation = mgrCommon.SaveFileBrowser(frmMain_ChooseLogFile, "txt", frmMain_Text, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), frmMain_DefaultLogFileName & " " & Date.Now.ToString("dd-MMM-yyyy"))
|
sLocation = mgrCommon.SaveFileBrowser("Log_File", frmMain_ChooseLogFile, "txt", frmMain_Text, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), frmMain_DefaultLogFileName & " " & Date.Now.ToString("dd-MMM-yyyy"))
|
||||||
|
|
||||||
If sLocation <> String.Empty Then
|
If sLocation <> String.Empty Then
|
||||||
mgrCommon.SaveText(txtLog.Text, sLocation)
|
mgrCommon.SaveText(txtLog.Text, sLocation)
|
||||||
@@ -1099,6 +1243,9 @@ Public Class frmMain
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub SetForm()
|
Private Sub SetForm()
|
||||||
|
'Set Minimum Size
|
||||||
|
Me.MinimumSize = New Size(Me.Size.Width, Me.Size.Height - txtLog.Size.Height)
|
||||||
|
|
||||||
'Set Form Name
|
'Set Form Name
|
||||||
Me.Name = App_NameLong
|
Me.Name = App_NameLong
|
||||||
|
|
||||||
@@ -1156,14 +1303,10 @@ Public Class frmMain
|
|||||||
gMonStripAdminButton.ToolTipText = frmMain_RunningAsNormal
|
gMonStripAdminButton.ToolTipText = frmMain_RunningAsNormal
|
||||||
End If
|
End If
|
||||||
btnCancelOperation.Visible = False
|
btnCancelOperation.Visible = False
|
||||||
txtLog.Visible = False
|
|
||||||
lblLastActionTitle.Visible = False
|
lblLastActionTitle.Visible = False
|
||||||
lblLastAction.Text = String.Empty
|
lblLastAction.Text = String.Empty
|
||||||
pbTime.SizeMode = PictureBoxSizeMode.AutoSize
|
pbTime.SizeMode = PictureBoxSizeMode.AutoSize
|
||||||
pbTime.Image = Icon_Clock
|
pbTime.Image = Icon_Clock
|
||||||
iFormHeight = Me.Size.Height
|
|
||||||
iLogSpacer = gMonStatusStrip.Location.Y - (txtLog.Location.Y + txtLog.Height)
|
|
||||||
Me.Size = New System.Drawing.Size(Me.Size.Width, Me.Size.Height - (txtLog.Height + iLogSpacer))
|
|
||||||
AddHandler mgrMonitorList.UpdateLog, AddressOf UpdateLog
|
AddHandler mgrMonitorList.UpdateLog, AddressOf UpdateLog
|
||||||
ResetGameInfo()
|
ResetGameInfo()
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1258,9 +1401,9 @@ Public Class frmMain
|
|||||||
Dim sSettingsRoot As String = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) & "/gbm"
|
Dim sSettingsRoot As String = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) & "/gbm"
|
||||||
Dim sDBLocation As String = sSettingsRoot & "/gbm.s3db"
|
Dim sDBLocation As String = sSettingsRoot & "/gbm.s3db"
|
||||||
|
|
||||||
If Not IO.Directory.Exists(sSettingsRoot) Then
|
If Not Directory.Exists(sSettingsRoot) Then
|
||||||
Try
|
Try
|
||||||
IO.Directory.CreateDirectory(sSettingsRoot)
|
Directory.CreateDirectory(sSettingsRoot)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
mgrCommon.ShowMessage(frmMain_ErrorSettingsFolder, ex.Message, MsgBoxStyle.Critical)
|
mgrCommon.ShowMessage(frmMain_ErrorSettingsFolder, ex.Message, MsgBoxStyle.Critical)
|
||||||
bShutdown = True
|
bShutdown = True
|
||||||
@@ -1268,7 +1411,7 @@ Public Class frmMain
|
|||||||
End Try
|
End Try
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Not IO.File.Exists(sDBLocation) Then bFirstRun = True
|
If Not File.Exists(sDBLocation) Then bFirstRun = True
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub VerifyDBVersion(ByVal iDB As mgrSQLite.Database)
|
Private Sub VerifyDBVersion(ByVal iDB As mgrSQLite.Database)
|
||||||
@@ -1311,7 +1454,7 @@ Public Class frmMain
|
|||||||
|
|
||||||
Private Sub CheckForSavedDuplicate()
|
Private Sub CheckForSavedDuplicate()
|
||||||
For Each o As clsGame In oProcess.DuplicateList
|
For Each o As clsGame In oProcess.DuplicateList
|
||||||
If o.ProcessPath.ToLower = oProcess.GameInfo.ProcessPath.ToLower Then
|
If o.ProcessPath.ToLower = oProcess.GameInfo.ProcessPath.ToLower And o.Parameter = String.Empty Then
|
||||||
oProcess.GameInfo = o
|
oProcess.GameInfo = o
|
||||||
oProcess.Duplicate = False
|
oProcess.Duplicate = False
|
||||||
End If
|
End If
|
||||||
@@ -1470,10 +1613,6 @@ Public Class frmMain
|
|||||||
OpenGameManager(True)
|
OpenGameManager(True)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub btnLogToggle_Click(sender As Object, e As EventArgs) Handles btnLogToggle.Click
|
|
||||||
ToggleLog()
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub gMonStripSplitStatusButton_ButtonClick(sender As Object, e As EventArgs) Handles gMonStripStatusButton.Click
|
Private Sub gMonStripSplitStatusButton_ButtonClick(sender As Object, e As EventArgs) Handles gMonStripStatusButton.Click
|
||||||
ScanToggle()
|
ScanToggle()
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1510,14 +1649,26 @@ Public Class frmMain
|
|||||||
ShutdownApp()
|
ShutdownApp()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'Intercept Exit
|
Select Case e.CloseReason
|
||||||
If bShutdown = False Then
|
Case CloseReason.UserClosing
|
||||||
e.Cancel = True
|
If bShutdown = False Then
|
||||||
If Not mgrCommon.IsUnix Then
|
e.Cancel = True
|
||||||
bShowToggle = False
|
If Not mgrCommon.IsUnix Then
|
||||||
Me.Visible = False
|
bShowToggle = False
|
||||||
Me.ShowInTaskbar = False
|
wState = Me.WindowState
|
||||||
End If
|
Me.WindowState = FormWindowState.Minimized
|
||||||
|
Me.ShowInTaskbar = False
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Case CloseReason.TaskManagerClosing, CloseReason.WindowsShutDown
|
||||||
|
'Do nothing and let the app close without warning
|
||||||
|
End Select
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub AutoRestoreEventProcessor(myObject As Object, ByVal myEventArgs As EventArgs) Handles tmRestoreCheck.Elapsed
|
||||||
|
If eCurrentStatus <> eStatus.Paused Then
|
||||||
|
AutoRestoreCheck()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1560,18 +1711,18 @@ Public Class frmMain
|
|||||||
If bContinue = True Then
|
If bContinue = True Then
|
||||||
CheckForSavedDuplicate()
|
CheckForSavedDuplicate()
|
||||||
If oProcess.Duplicate Then
|
If oProcess.Duplicate Then
|
||||||
UpdateLog(frmMain_MultipleGamesDetected, oSettings.ShowDetectionToolTips)
|
UpdateLog(frmMain_MultipleGamesDetected, oSettings.ShowDetectionToolTips)
|
||||||
UpdateStatus(frmMain_MultipleGamesDetected)
|
UpdateStatus(frmMain_MultipleGamesDetected)
|
||||||
SetGameInfo(True)
|
SetGameInfo(True)
|
||||||
|
Else
|
||||||
|
UpdateLog(mgrCommon.FormatString(frmMain_GameDetected, oProcess.GameInfo.Name), oSettings.ShowDetectionToolTips)
|
||||||
|
UpdateStatus(mgrCommon.FormatString(frmMain_GameDetected, oProcess.GameInfo.CroppedName))
|
||||||
|
SetGameInfo()
|
||||||
|
End If
|
||||||
|
oProcess.StartTime = Now
|
||||||
|
bwMonitor.RunWorkerAsync()
|
||||||
Else
|
Else
|
||||||
UpdateLog(mgrCommon.FormatString(frmMain_GameDetected, oProcess.GameInfo.Name), oSettings.ShowDetectionToolTips)
|
StopScan()
|
||||||
UpdateStatus(mgrCommon.FormatString(frmMain_GameDetected, oProcess.GameInfo.CroppedName))
|
|
||||||
SetGameInfo()
|
|
||||||
End If
|
|
||||||
oProcess.StartTime = Now
|
|
||||||
bwMonitor.RunWorkerAsync()
|
|
||||||
Else
|
|
||||||
StopScan()
|
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1683,14 +1834,18 @@ Public Class frmMain
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub txtGameInfo_Enter(sender As Object, e As EventArgs)
|
|
||||||
btnLogToggle.Focus()
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub frmMain_KeyDown(sender As Object, e As KeyEventArgs) Handles MyBase.KeyDown
|
Private Sub frmMain_KeyDown(sender As Object, e As KeyEventArgs) Handles MyBase.KeyDown
|
||||||
If e.KeyCode = Keys.Oemtilde AndAlso e.Modifiers = Keys.Control Then
|
If e.KeyCode = Keys.Oemtilde AndAlso e.Modifiers = Keys.Control Then
|
||||||
OpenDevConsole()
|
OpenDevConsole()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
'This event handler lets the user clear focus from the log by clicking anywhere on the form.
|
||||||
|
'Due to txtLog being the only focusable control in most cases, it's impossible for it to lose focus unless a change is forced.
|
||||||
|
Private Sub ClearLogFocus(sender As Object, e As EventArgs) Handles MyBase.Click, lblGameTitle.Click, lblStatus1.Click, lblStatus2.Click,
|
||||||
|
lblStatus3.Click, pbTime.Click, lblTimeSpent.Click, lblLastActionTitle.Click, lblLastAction.Click, gMonMainMenu.Click, gMonStatusStrip.Click
|
||||||
|
'Move focus to first label
|
||||||
|
lblGameTitle.Focus()
|
||||||
|
End Sub
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
Generated
+136
-104
@@ -23,7 +23,6 @@ Partial Class frmSettings
|
|||||||
<System.Diagnostics.DebuggerStepThrough()> _
|
<System.Diagnostics.DebuggerStepThrough()> _
|
||||||
Private Sub InitializeComponent()
|
Private Sub InitializeComponent()
|
||||||
Me.chkMonitorOnStartup = New System.Windows.Forms.CheckBox()
|
Me.chkMonitorOnStartup = New System.Windows.Forms.CheckBox()
|
||||||
Me.chkBackupConfirm = New System.Windows.Forms.CheckBox()
|
|
||||||
Me.grpStartup = New System.Windows.Forms.GroupBox()
|
Me.grpStartup = New System.Windows.Forms.GroupBox()
|
||||||
Me.chkStartWindows = New System.Windows.Forms.CheckBox()
|
Me.chkStartWindows = New System.Windows.Forms.CheckBox()
|
||||||
Me.chkStartToTray = New System.Windows.Forms.CheckBox()
|
Me.chkStartToTray = New System.Windows.Forms.CheckBox()
|
||||||
@@ -39,12 +38,6 @@ Partial Class frmSettings
|
|||||||
Me.chkCreateFolder = New System.Windows.Forms.CheckBox()
|
Me.chkCreateFolder = New System.Windows.Forms.CheckBox()
|
||||||
Me.btnSave = New System.Windows.Forms.Button()
|
Me.btnSave = New System.Windows.Forms.Button()
|
||||||
Me.btnCancel = New System.Windows.Forms.Button()
|
Me.btnCancel = New System.Windows.Forms.Button()
|
||||||
Me.lblMinutes = New System.Windows.Forms.Label()
|
|
||||||
Me.nudSupressBackupThreshold = New System.Windows.Forms.NumericUpDown()
|
|
||||||
Me.chkSupressBackup = New System.Windows.Forms.CheckBox()
|
|
||||||
Me.chkCheckSum = New System.Windows.Forms.CheckBox()
|
|
||||||
Me.chkRestoreOnLaunch = New System.Windows.Forms.CheckBox()
|
|
||||||
Me.chkOverwriteWarning = New System.Windows.Forms.CheckBox()
|
|
||||||
Me.grp7zGeneral = New System.Windows.Forms.GroupBox()
|
Me.grp7zGeneral = New System.Windows.Forms.GroupBox()
|
||||||
Me.cboCompression = New System.Windows.Forms.ComboBox()
|
Me.cboCompression = New System.Windows.Forms.ComboBox()
|
||||||
Me.lblCompression = New System.Windows.Forms.Label()
|
Me.lblCompression = New System.Windows.Forms.Label()
|
||||||
@@ -57,6 +50,15 @@ Partial Class frmSettings
|
|||||||
Me.lbl7zProduct = New System.Windows.Forms.Label()
|
Me.lbl7zProduct = New System.Windows.Forms.Label()
|
||||||
Me.btnDefaults = New System.Windows.Forms.Button()
|
Me.btnDefaults = New System.Windows.Forms.Button()
|
||||||
Me.pnlBackup = New System.Windows.Forms.Panel()
|
Me.pnlBackup = New System.Windows.Forms.Panel()
|
||||||
|
Me.lblMinutes = New System.Windows.Forms.Label()
|
||||||
|
Me.nudSupressBackupThreshold = New System.Windows.Forms.NumericUpDown()
|
||||||
|
Me.chkSupressBackup = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.chkBackupConfirm = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.chkOverwriteWarning = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.grpBackupHandling = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.chkAutoRestore = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.chkRestoreNotify = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.chkAutoMark = New System.Windows.Forms.CheckBox()
|
||||||
Me.pnl7z = New System.Windows.Forms.Panel()
|
Me.pnl7z = New System.Windows.Forms.Panel()
|
||||||
Me.grp7zAdvanced = New System.Windows.Forms.GroupBox()
|
Me.grp7zAdvanced = New System.Windows.Forms.GroupBox()
|
||||||
Me.grp7zInformation = New System.Windows.Forms.GroupBox()
|
Me.grp7zInformation = New System.Windows.Forms.GroupBox()
|
||||||
@@ -65,9 +67,10 @@ Partial Class frmSettings
|
|||||||
Me.lstSettings = New System.Windows.Forms.ListBox()
|
Me.lstSettings = New System.Windows.Forms.ListBox()
|
||||||
Me.grpStartup.SuspendLayout()
|
Me.grpStartup.SuspendLayout()
|
||||||
Me.grpFolderOptions.SuspendLayout()
|
Me.grpFolderOptions.SuspendLayout()
|
||||||
CType(Me.nudSupressBackupThreshold, System.ComponentModel.ISupportInitialize).BeginInit()
|
|
||||||
Me.grp7zGeneral.SuspendLayout()
|
Me.grp7zGeneral.SuspendLayout()
|
||||||
Me.pnlBackup.SuspendLayout()
|
Me.pnlBackup.SuspendLayout()
|
||||||
|
CType(Me.nudSupressBackupThreshold, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
Me.grpBackupHandling.SuspendLayout()
|
||||||
Me.pnl7z.SuspendLayout()
|
Me.pnl7z.SuspendLayout()
|
||||||
Me.grp7zAdvanced.SuspendLayout()
|
Me.grp7zAdvanced.SuspendLayout()
|
||||||
Me.grp7zInformation.SuspendLayout()
|
Me.grp7zInformation.SuspendLayout()
|
||||||
@@ -85,16 +88,6 @@ Partial Class frmSettings
|
|||||||
Me.chkMonitorOnStartup.Text = "Start monitoring at launch"
|
Me.chkMonitorOnStartup.Text = "Start monitoring at launch"
|
||||||
Me.chkMonitorOnStartup.UseVisualStyleBackColor = True
|
Me.chkMonitorOnStartup.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'chkBackupConfirm
|
|
||||||
'
|
|
||||||
Me.chkBackupConfirm.AutoSize = True
|
|
||||||
Me.chkBackupConfirm.Location = New System.Drawing.Point(6, 88)
|
|
||||||
Me.chkBackupConfirm.Name = "chkBackupConfirm"
|
|
||||||
Me.chkBackupConfirm.Size = New System.Drawing.Size(160, 17)
|
|
||||||
Me.chkBackupConfirm.TabIndex = 1
|
|
||||||
Me.chkBackupConfirm.Text = "Disable backup confirmation"
|
|
||||||
Me.chkBackupConfirm.UseVisualStyleBackColor = True
|
|
||||||
'
|
|
||||||
'grpStartup
|
'grpStartup
|
||||||
'
|
'
|
||||||
Me.grpStartup.Controls.Add(Me.chkStartWindows)
|
Me.grpStartup.Controls.Add(Me.chkStartWindows)
|
||||||
@@ -133,7 +126,7 @@ Partial Class frmSettings
|
|||||||
Me.chkAutoSaveLog.Location = New System.Drawing.Point(6, 204)
|
Me.chkAutoSaveLog.Location = New System.Drawing.Point(6, 204)
|
||||||
Me.chkAutoSaveLog.Name = "chkAutoSaveLog"
|
Me.chkAutoSaveLog.Name = "chkAutoSaveLog"
|
||||||
Me.chkAutoSaveLog.Size = New System.Drawing.Size(231, 17)
|
Me.chkAutoSaveLog.Size = New System.Drawing.Size(231, 17)
|
||||||
Me.chkAutoSaveLog.TabIndex = 7
|
Me.chkAutoSaveLog.TabIndex = 3
|
||||||
Me.chkAutoSaveLog.Text = "Autosave log when max length is exceeded"
|
Me.chkAutoSaveLog.Text = "Autosave log when max length is exceeded"
|
||||||
Me.chkAutoSaveLog.UseVisualStyleBackColor = True
|
Me.chkAutoSaveLog.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
@@ -142,7 +135,7 @@ Partial Class frmSettings
|
|||||||
Me.btnOptionalFields.Location = New System.Drawing.Point(110, 38)
|
Me.btnOptionalFields.Location = New System.Drawing.Point(110, 38)
|
||||||
Me.btnOptionalFields.Name = "btnOptionalFields"
|
Me.btnOptionalFields.Name = "btnOptionalFields"
|
||||||
Me.btnOptionalFields.Size = New System.Drawing.Size(134, 23)
|
Me.btnOptionalFields.Size = New System.Drawing.Size(134, 23)
|
||||||
Me.btnOptionalFields.TabIndex = 6
|
Me.btnOptionalFields.TabIndex = 2
|
||||||
Me.btnOptionalFields.Text = "Choose &Optional Fields..."
|
Me.btnOptionalFields.Text = "Choose &Optional Fields..."
|
||||||
Me.btnOptionalFields.UseVisualStyleBackColor = True
|
Me.btnOptionalFields.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
@@ -152,7 +145,7 @@ Partial Class frmSettings
|
|||||||
Me.chkTimeTracking.Location = New System.Drawing.Point(6, 19)
|
Me.chkTimeTracking.Location = New System.Drawing.Point(6, 19)
|
||||||
Me.chkTimeTracking.Name = "chkTimeTracking"
|
Me.chkTimeTracking.Name = "chkTimeTracking"
|
||||||
Me.chkTimeTracking.Size = New System.Drawing.Size(122, 17)
|
Me.chkTimeTracking.Size = New System.Drawing.Size(122, 17)
|
||||||
Me.chkTimeTracking.TabIndex = 4
|
Me.chkTimeTracking.TabIndex = 0
|
||||||
Me.chkTimeTracking.Text = "Enable time tracking"
|
Me.chkTimeTracking.Text = "Enable time tracking"
|
||||||
Me.chkTimeTracking.UseVisualStyleBackColor = True
|
Me.chkTimeTracking.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
@@ -162,7 +155,7 @@ Partial Class frmSettings
|
|||||||
Me.chkSync.Location = New System.Drawing.Point(6, 42)
|
Me.chkSync.Location = New System.Drawing.Point(6, 42)
|
||||||
Me.chkSync.Name = "chkSync"
|
Me.chkSync.Name = "chkSync"
|
||||||
Me.chkSync.Size = New System.Drawing.Size(98, 17)
|
Me.chkSync.Size = New System.Drawing.Size(98, 17)
|
||||||
Me.chkSync.TabIndex = 5
|
Me.chkSync.TabIndex = 1
|
||||||
Me.chkSync.Text = "Enable syncing"
|
Me.chkSync.Text = "Enable syncing"
|
||||||
Me.chkSync.UseVisualStyleBackColor = True
|
Me.chkSync.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
@@ -172,7 +165,7 @@ Partial Class frmSettings
|
|||||||
Me.chkShowDetectionTips.Location = New System.Drawing.Point(6, 181)
|
Me.chkShowDetectionTips.Location = New System.Drawing.Point(6, 181)
|
||||||
Me.chkShowDetectionTips.Name = "chkShowDetectionTips"
|
Me.chkShowDetectionTips.Name = "chkShowDetectionTips"
|
||||||
Me.chkShowDetectionTips.Size = New System.Drawing.Size(159, 17)
|
Me.chkShowDetectionTips.Size = New System.Drawing.Size(159, 17)
|
||||||
Me.chkShowDetectionTips.TabIndex = 3
|
Me.chkShowDetectionTips.TabIndex = 2
|
||||||
Me.chkShowDetectionTips.Text = "Show detection notifications"
|
Me.chkShowDetectionTips.Text = "Show detection notifications"
|
||||||
Me.chkShowDetectionTips.UseVisualStyleBackColor = True
|
Me.chkShowDetectionTips.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
@@ -185,7 +178,7 @@ Partial Class frmSettings
|
|||||||
Me.grpFolderOptions.Location = New System.Drawing.Point(6, 12)
|
Me.grpFolderOptions.Location = New System.Drawing.Point(6, 12)
|
||||||
Me.grpFolderOptions.Name = "grpFolderOptions"
|
Me.grpFolderOptions.Name = "grpFolderOptions"
|
||||||
Me.grpFolderOptions.Size = New System.Drawing.Size(354, 70)
|
Me.grpFolderOptions.Size = New System.Drawing.Size(354, 70)
|
||||||
Me.grpFolderOptions.TabIndex = 1
|
Me.grpFolderOptions.TabIndex = 0
|
||||||
Me.grpFolderOptions.TabStop = False
|
Me.grpFolderOptions.TabStop = False
|
||||||
Me.grpFolderOptions.Text = "Folders"
|
Me.grpFolderOptions.Text = "Folders"
|
||||||
'
|
'
|
||||||
@@ -194,7 +187,7 @@ Partial Class frmSettings
|
|||||||
Me.btnBackupFolder.Location = New System.Drawing.Point(313, 17)
|
Me.btnBackupFolder.Location = New System.Drawing.Point(313, 17)
|
||||||
Me.btnBackupFolder.Name = "btnBackupFolder"
|
Me.btnBackupFolder.Name = "btnBackupFolder"
|
||||||
Me.btnBackupFolder.Size = New System.Drawing.Size(27, 20)
|
Me.btnBackupFolder.Size = New System.Drawing.Size(27, 20)
|
||||||
Me.btnBackupFolder.TabIndex = 2
|
Me.btnBackupFolder.TabIndex = 1
|
||||||
Me.btnBackupFolder.Text = "..."
|
Me.btnBackupFolder.Text = "..."
|
||||||
Me.btnBackupFolder.UseVisualStyleBackColor = True
|
Me.btnBackupFolder.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
@@ -212,7 +205,7 @@ Partial Class frmSettings
|
|||||||
Me.txtBackupFolder.Location = New System.Drawing.Point(91, 17)
|
Me.txtBackupFolder.Location = New System.Drawing.Point(91, 17)
|
||||||
Me.txtBackupFolder.Name = "txtBackupFolder"
|
Me.txtBackupFolder.Name = "txtBackupFolder"
|
||||||
Me.txtBackupFolder.Size = New System.Drawing.Size(216, 20)
|
Me.txtBackupFolder.Size = New System.Drawing.Size(216, 20)
|
||||||
Me.txtBackupFolder.TabIndex = 1
|
Me.txtBackupFolder.TabIndex = 0
|
||||||
'
|
'
|
||||||
'chkCreateFolder
|
'chkCreateFolder
|
||||||
'
|
'
|
||||||
@@ -220,7 +213,7 @@ Partial Class frmSettings
|
|||||||
Me.chkCreateFolder.Location = New System.Drawing.Point(9, 43)
|
Me.chkCreateFolder.Location = New System.Drawing.Point(9, 43)
|
||||||
Me.chkCreateFolder.Name = "chkCreateFolder"
|
Me.chkCreateFolder.Name = "chkCreateFolder"
|
||||||
Me.chkCreateFolder.Size = New System.Drawing.Size(186, 17)
|
Me.chkCreateFolder.Size = New System.Drawing.Size(186, 17)
|
||||||
Me.chkCreateFolder.TabIndex = 3
|
Me.chkCreateFolder.TabIndex = 2
|
||||||
Me.chkCreateFolder.Text = "Create a sub-folder for each game"
|
Me.chkCreateFolder.Text = "Create a sub-folder for each game"
|
||||||
Me.chkCreateFolder.UseVisualStyleBackColor = True
|
Me.chkCreateFolder.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
@@ -244,63 +237,6 @@ Partial Class frmSettings
|
|||||||
Me.btnCancel.Text = "&Cancel"
|
Me.btnCancel.Text = "&Cancel"
|
||||||
Me.btnCancel.UseVisualStyleBackColor = True
|
Me.btnCancel.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'lblMinutes
|
|
||||||
'
|
|
||||||
Me.lblMinutes.AutoSize = True
|
|
||||||
Me.lblMinutes.Location = New System.Drawing.Point(286, 181)
|
|
||||||
Me.lblMinutes.Name = "lblMinutes"
|
|
||||||
Me.lblMinutes.Size = New System.Drawing.Size(43, 13)
|
|
||||||
Me.lblMinutes.TabIndex = 7
|
|
||||||
Me.lblMinutes.Text = "minutes"
|
|
||||||
'
|
|
||||||
'nudSupressBackupThreshold
|
|
||||||
'
|
|
||||||
Me.nudSupressBackupThreshold.Location = New System.Drawing.Point(229, 179)
|
|
||||||
Me.nudSupressBackupThreshold.Maximum = New Decimal(New Integer() {999, 0, 0, 0})
|
|
||||||
Me.nudSupressBackupThreshold.Name = "nudSupressBackupThreshold"
|
|
||||||
Me.nudSupressBackupThreshold.Size = New System.Drawing.Size(51, 20)
|
|
||||||
Me.nudSupressBackupThreshold.TabIndex = 6
|
|
||||||
'
|
|
||||||
'chkSupressBackup
|
|
||||||
'
|
|
||||||
Me.chkSupressBackup.AutoSize = True
|
|
||||||
Me.chkSupressBackup.Location = New System.Drawing.Point(6, 180)
|
|
||||||
Me.chkSupressBackup.Name = "chkSupressBackup"
|
|
||||||
Me.chkSupressBackup.Size = New System.Drawing.Size(217, 17)
|
|
||||||
Me.chkSupressBackup.TabIndex = 5
|
|
||||||
Me.chkSupressBackup.Text = "Backup only when session time exceeds"
|
|
||||||
Me.chkSupressBackup.UseVisualStyleBackColor = True
|
|
||||||
'
|
|
||||||
'chkCheckSum
|
|
||||||
'
|
|
||||||
Me.chkCheckSum.AutoSize = True
|
|
||||||
Me.chkCheckSum.Location = New System.Drawing.Point(6, 134)
|
|
||||||
Me.chkCheckSum.Name = "chkCheckSum"
|
|
||||||
Me.chkCheckSum.Size = New System.Drawing.Size(195, 17)
|
|
||||||
Me.chkCheckSum.TabIndex = 3
|
|
||||||
Me.chkCheckSum.Text = "Verify backup files with a checksum"
|
|
||||||
Me.chkCheckSum.UseVisualStyleBackColor = True
|
|
||||||
'
|
|
||||||
'chkRestoreOnLaunch
|
|
||||||
'
|
|
||||||
Me.chkRestoreOnLaunch.AutoSize = True
|
|
||||||
Me.chkRestoreOnLaunch.Location = New System.Drawing.Point(6, 157)
|
|
||||||
Me.chkRestoreOnLaunch.Name = "chkRestoreOnLaunch"
|
|
||||||
Me.chkRestoreOnLaunch.Size = New System.Drawing.Size(257, 17)
|
|
||||||
Me.chkRestoreOnLaunch.TabIndex = 4
|
|
||||||
Me.chkRestoreOnLaunch.Text = "Notify when there are new backup files to restore"
|
|
||||||
Me.chkRestoreOnLaunch.UseVisualStyleBackColor = True
|
|
||||||
'
|
|
||||||
'chkOverwriteWarning
|
|
||||||
'
|
|
||||||
Me.chkOverwriteWarning.AutoSize = True
|
|
||||||
Me.chkOverwriteWarning.Location = New System.Drawing.Point(6, 111)
|
|
||||||
Me.chkOverwriteWarning.Name = "chkOverwriteWarning"
|
|
||||||
Me.chkOverwriteWarning.Size = New System.Drawing.Size(139, 17)
|
|
||||||
Me.chkOverwriteWarning.TabIndex = 2
|
|
||||||
Me.chkOverwriteWarning.Text = "Show overwrite warning"
|
|
||||||
Me.chkOverwriteWarning.UseVisualStyleBackColor = True
|
|
||||||
'
|
|
||||||
'grp7zGeneral
|
'grp7zGeneral
|
||||||
'
|
'
|
||||||
Me.grp7zGeneral.Controls.Add(Me.cboCompression)
|
Me.grp7zGeneral.Controls.Add(Me.cboCompression)
|
||||||
@@ -319,7 +255,7 @@ Partial Class frmSettings
|
|||||||
Me.cboCompression.Location = New System.Drawing.Point(110, 17)
|
Me.cboCompression.Location = New System.Drawing.Point(110, 17)
|
||||||
Me.cboCompression.Name = "cboCompression"
|
Me.cboCompression.Name = "cboCompression"
|
||||||
Me.cboCompression.Size = New System.Drawing.Size(238, 21)
|
Me.cboCompression.Size = New System.Drawing.Size(238, 21)
|
||||||
Me.cboCompression.TabIndex = 1
|
Me.cboCompression.TabIndex = 0
|
||||||
'
|
'
|
||||||
'lblCompression
|
'lblCompression
|
||||||
'
|
'
|
||||||
@@ -335,7 +271,7 @@ Partial Class frmSettings
|
|||||||
Me.btn7zLocation.Location = New System.Drawing.Point(313, 41)
|
Me.btn7zLocation.Location = New System.Drawing.Point(313, 41)
|
||||||
Me.btn7zLocation.Name = "btn7zLocation"
|
Me.btn7zLocation.Name = "btn7zLocation"
|
||||||
Me.btn7zLocation.Size = New System.Drawing.Size(27, 20)
|
Me.btn7zLocation.Size = New System.Drawing.Size(27, 20)
|
||||||
Me.btn7zLocation.TabIndex = 5
|
Me.btn7zLocation.TabIndex = 2
|
||||||
Me.btn7zLocation.Text = "..."
|
Me.btn7zLocation.Text = "..."
|
||||||
Me.btn7zLocation.UseVisualStyleBackColor = True
|
Me.btn7zLocation.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
@@ -344,7 +280,7 @@ Partial Class frmSettings
|
|||||||
Me.txt7zLocation.Location = New System.Drawing.Point(110, 41)
|
Me.txt7zLocation.Location = New System.Drawing.Point(110, 41)
|
||||||
Me.txt7zLocation.Name = "txt7zLocation"
|
Me.txt7zLocation.Name = "txt7zLocation"
|
||||||
Me.txt7zLocation.Size = New System.Drawing.Size(197, 20)
|
Me.txt7zLocation.Size = New System.Drawing.Size(197, 20)
|
||||||
Me.txt7zLocation.TabIndex = 4
|
Me.txt7zLocation.TabIndex = 1
|
||||||
'
|
'
|
||||||
'lblLocation
|
'lblLocation
|
||||||
'
|
'
|
||||||
@@ -360,7 +296,7 @@ Partial Class frmSettings
|
|||||||
Me.txt7zArguments.Location = New System.Drawing.Point(110, 15)
|
Me.txt7zArguments.Location = New System.Drawing.Point(110, 15)
|
||||||
Me.txt7zArguments.Name = "txt7zArguments"
|
Me.txt7zArguments.Name = "txt7zArguments"
|
||||||
Me.txt7zArguments.Size = New System.Drawing.Size(238, 20)
|
Me.txt7zArguments.Size = New System.Drawing.Size(238, 20)
|
||||||
Me.txt7zArguments.TabIndex = 3
|
Me.txt7zArguments.TabIndex = 0
|
||||||
'
|
'
|
||||||
'lblArguments
|
'lblArguments
|
||||||
'
|
'
|
||||||
@@ -402,17 +338,109 @@ Partial Class frmSettings
|
|||||||
'
|
'
|
||||||
Me.pnlBackup.Controls.Add(Me.lblMinutes)
|
Me.pnlBackup.Controls.Add(Me.lblMinutes)
|
||||||
Me.pnlBackup.Controls.Add(Me.nudSupressBackupThreshold)
|
Me.pnlBackup.Controls.Add(Me.nudSupressBackupThreshold)
|
||||||
Me.pnlBackup.Controls.Add(Me.grpFolderOptions)
|
|
||||||
Me.pnlBackup.Controls.Add(Me.chkSupressBackup)
|
Me.pnlBackup.Controls.Add(Me.chkSupressBackup)
|
||||||
Me.pnlBackup.Controls.Add(Me.chkBackupConfirm)
|
Me.pnlBackup.Controls.Add(Me.chkBackupConfirm)
|
||||||
Me.pnlBackup.Controls.Add(Me.chkCheckSum)
|
|
||||||
Me.pnlBackup.Controls.Add(Me.chkOverwriteWarning)
|
Me.pnlBackup.Controls.Add(Me.chkOverwriteWarning)
|
||||||
Me.pnlBackup.Controls.Add(Me.chkRestoreOnLaunch)
|
Me.pnlBackup.Controls.Add(Me.grpBackupHandling)
|
||||||
|
Me.pnlBackup.Controls.Add(Me.grpFolderOptions)
|
||||||
Me.pnlBackup.Location = New System.Drawing.Point(180, 0)
|
Me.pnlBackup.Location = New System.Drawing.Point(180, 0)
|
||||||
Me.pnlBackup.Name = "pnlBackup"
|
Me.pnlBackup.Name = "pnlBackup"
|
||||||
Me.pnlBackup.Size = New System.Drawing.Size(367, 314)
|
Me.pnlBackup.Size = New System.Drawing.Size(367, 314)
|
||||||
Me.pnlBackup.TabIndex = 3
|
Me.pnlBackup.TabIndex = 3
|
||||||
'
|
'
|
||||||
|
'lblMinutes
|
||||||
|
'
|
||||||
|
Me.lblMinutes.AutoSize = True
|
||||||
|
Me.lblMinutes.Location = New System.Drawing.Point(286, 228)
|
||||||
|
Me.lblMinutes.Name = "lblMinutes"
|
||||||
|
Me.lblMinutes.Size = New System.Drawing.Size(43, 13)
|
||||||
|
Me.lblMinutes.TabIndex = 14
|
||||||
|
Me.lblMinutes.Text = "minutes"
|
||||||
|
'
|
||||||
|
'nudSupressBackupThreshold
|
||||||
|
'
|
||||||
|
Me.nudSupressBackupThreshold.Location = New System.Drawing.Point(229, 226)
|
||||||
|
Me.nudSupressBackupThreshold.Maximum = New Decimal(New Integer() {999, 0, 0, 0})
|
||||||
|
Me.nudSupressBackupThreshold.Name = "nudSupressBackupThreshold"
|
||||||
|
Me.nudSupressBackupThreshold.Size = New System.Drawing.Size(51, 20)
|
||||||
|
Me.nudSupressBackupThreshold.TabIndex = 5
|
||||||
|
'
|
||||||
|
'chkSupressBackup
|
||||||
|
'
|
||||||
|
Me.chkSupressBackup.AutoSize = True
|
||||||
|
Me.chkSupressBackup.Location = New System.Drawing.Point(6, 228)
|
||||||
|
Me.chkSupressBackup.Name = "chkSupressBackup"
|
||||||
|
Me.chkSupressBackup.Size = New System.Drawing.Size(217, 17)
|
||||||
|
Me.chkSupressBackup.TabIndex = 4
|
||||||
|
Me.chkSupressBackup.Text = "Backup only when session time exceeds"
|
||||||
|
Me.chkSupressBackup.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'chkBackupConfirm
|
||||||
|
'
|
||||||
|
Me.chkBackupConfirm.AutoSize = True
|
||||||
|
Me.chkBackupConfirm.Location = New System.Drawing.Point(6, 180)
|
||||||
|
Me.chkBackupConfirm.Name = "chkBackupConfirm"
|
||||||
|
Me.chkBackupConfirm.Size = New System.Drawing.Size(160, 17)
|
||||||
|
Me.chkBackupConfirm.TabIndex = 2
|
||||||
|
Me.chkBackupConfirm.Text = "Disable backup confirmation"
|
||||||
|
Me.chkBackupConfirm.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'chkOverwriteWarning
|
||||||
|
'
|
||||||
|
Me.chkOverwriteWarning.AutoSize = True
|
||||||
|
Me.chkOverwriteWarning.Location = New System.Drawing.Point(6, 204)
|
||||||
|
Me.chkOverwriteWarning.Name = "chkOverwriteWarning"
|
||||||
|
Me.chkOverwriteWarning.Size = New System.Drawing.Size(139, 17)
|
||||||
|
Me.chkOverwriteWarning.TabIndex = 3
|
||||||
|
Me.chkOverwriteWarning.Text = "Show overwrite warning"
|
||||||
|
Me.chkOverwriteWarning.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'grpBackupHandling
|
||||||
|
'
|
||||||
|
Me.grpBackupHandling.Controls.Add(Me.chkAutoRestore)
|
||||||
|
Me.grpBackupHandling.Controls.Add(Me.chkRestoreNotify)
|
||||||
|
Me.grpBackupHandling.Controls.Add(Me.chkAutoMark)
|
||||||
|
Me.grpBackupHandling.Location = New System.Drawing.Point(6, 88)
|
||||||
|
Me.grpBackupHandling.Margin = New System.Windows.Forms.Padding(2, 2, 2, 2)
|
||||||
|
Me.grpBackupHandling.Name = "grpBackupHandling"
|
||||||
|
Me.grpBackupHandling.Padding = New System.Windows.Forms.Padding(2, 2, 2, 2)
|
||||||
|
Me.grpBackupHandling.Size = New System.Drawing.Size(354, 87)
|
||||||
|
Me.grpBackupHandling.TabIndex = 1
|
||||||
|
Me.grpBackupHandling.TabStop = False
|
||||||
|
Me.grpBackupHandling.Text = "Backup Handling"
|
||||||
|
'
|
||||||
|
'chkAutoRestore
|
||||||
|
'
|
||||||
|
Me.chkAutoRestore.AutoSize = True
|
||||||
|
Me.chkAutoRestore.Location = New System.Drawing.Point(8, 41)
|
||||||
|
Me.chkAutoRestore.Margin = New System.Windows.Forms.Padding(2, 2, 2, 2)
|
||||||
|
Me.chkAutoRestore.Name = "chkAutoRestore"
|
||||||
|
Me.chkAutoRestore.Size = New System.Drawing.Size(190, 17)
|
||||||
|
Me.chkAutoRestore.TabIndex = 1
|
||||||
|
Me.chkAutoRestore.Text = "Automatically restore new backups"
|
||||||
|
Me.chkAutoRestore.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'chkRestoreNotify
|
||||||
|
'
|
||||||
|
Me.chkRestoreNotify.AutoSize = True
|
||||||
|
Me.chkRestoreNotify.Location = New System.Drawing.Point(8, 19)
|
||||||
|
Me.chkRestoreNotify.Margin = New System.Windows.Forms.Padding(2, 2, 2, 2)
|
||||||
|
Me.chkRestoreNotify.Name = "chkRestoreNotify"
|
||||||
|
Me.chkRestoreNotify.Size = New System.Drawing.Size(216, 17)
|
||||||
|
Me.chkRestoreNotify.TabIndex = 0
|
||||||
|
Me.chkRestoreNotify.Text = "Display notifications about new backups"
|
||||||
|
Me.chkRestoreNotify.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'chkAutoMark
|
||||||
|
'
|
||||||
|
Me.chkAutoMark.AutoSize = True
|
||||||
|
Me.chkAutoMark.Location = New System.Drawing.Point(8, 63)
|
||||||
|
Me.chkAutoMark.Name = "chkAutoMark"
|
||||||
|
Me.chkAutoMark.Size = New System.Drawing.Size(321, 17)
|
||||||
|
Me.chkAutoMark.TabIndex = 2
|
||||||
|
Me.chkAutoMark.Text = "Automatically mark new backups as restored when appropriate"
|
||||||
|
Me.chkAutoMark.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
'pnl7z
|
'pnl7z
|
||||||
'
|
'
|
||||||
Me.pnl7z.Controls.Add(Me.grp7zAdvanced)
|
Me.pnl7z.Controls.Add(Me.grp7zAdvanced)
|
||||||
@@ -433,7 +461,7 @@ Partial Class frmSettings
|
|||||||
Me.grp7zAdvanced.Location = New System.Drawing.Point(6, 68)
|
Me.grp7zAdvanced.Location = New System.Drawing.Point(6, 68)
|
||||||
Me.grp7zAdvanced.Name = "grp7zAdvanced"
|
Me.grp7zAdvanced.Name = "grp7zAdvanced"
|
||||||
Me.grp7zAdvanced.Size = New System.Drawing.Size(354, 73)
|
Me.grp7zAdvanced.Size = New System.Drawing.Size(354, 73)
|
||||||
Me.grp7zAdvanced.TabIndex = 2
|
Me.grp7zAdvanced.TabIndex = 1
|
||||||
Me.grp7zAdvanced.TabStop = False
|
Me.grp7zAdvanced.TabStop = False
|
||||||
Me.grp7zAdvanced.Text = "Advanced"
|
Me.grp7zAdvanced.Text = "Advanced"
|
||||||
'
|
'
|
||||||
@@ -444,7 +472,7 @@ Partial Class frmSettings
|
|||||||
Me.grp7zInformation.Location = New System.Drawing.Point(6, 146)
|
Me.grp7zInformation.Location = New System.Drawing.Point(6, 146)
|
||||||
Me.grp7zInformation.Name = "grp7zInformation"
|
Me.grp7zInformation.Name = "grp7zInformation"
|
||||||
Me.grp7zInformation.Size = New System.Drawing.Size(354, 63)
|
Me.grp7zInformation.Size = New System.Drawing.Size(354, 63)
|
||||||
Me.grp7zInformation.TabIndex = 1
|
Me.grp7zInformation.TabIndex = 2
|
||||||
Me.grp7zInformation.TabStop = False
|
Me.grp7zInformation.TabStop = False
|
||||||
Me.grp7zInformation.Text = "Utility Information"
|
Me.grp7zInformation.Text = "Utility Information"
|
||||||
'
|
'
|
||||||
@@ -484,13 +512,13 @@ Partial Class frmSettings
|
|||||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||||
Me.ClientSize = New System.Drawing.Size(554, 361)
|
Me.ClientSize = New System.Drawing.Size(554, 361)
|
||||||
|
Me.Controls.Add(Me.pnlGeneral)
|
||||||
|
Me.Controls.Add(Me.pnlBackup)
|
||||||
|
Me.Controls.Add(Me.pnl7z)
|
||||||
Me.Controls.Add(Me.lstSettings)
|
Me.Controls.Add(Me.lstSettings)
|
||||||
Me.Controls.Add(Me.btnDefaults)
|
Me.Controls.Add(Me.btnDefaults)
|
||||||
Me.Controls.Add(Me.btnCancel)
|
Me.Controls.Add(Me.btnCancel)
|
||||||
Me.Controls.Add(Me.btnSave)
|
Me.Controls.Add(Me.btnSave)
|
||||||
Me.Controls.Add(Me.pnlGeneral)
|
|
||||||
Me.Controls.Add(Me.pnl7z)
|
|
||||||
Me.Controls.Add(Me.pnlBackup)
|
|
||||||
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
|
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
|
||||||
Me.MaximizeBox = False
|
Me.MaximizeBox = False
|
||||||
Me.MinimizeBox = False
|
Me.MinimizeBox = False
|
||||||
@@ -503,11 +531,13 @@ Partial Class frmSettings
|
|||||||
Me.grpStartup.PerformLayout()
|
Me.grpStartup.PerformLayout()
|
||||||
Me.grpFolderOptions.ResumeLayout(False)
|
Me.grpFolderOptions.ResumeLayout(False)
|
||||||
Me.grpFolderOptions.PerformLayout()
|
Me.grpFolderOptions.PerformLayout()
|
||||||
CType(Me.nudSupressBackupThreshold, System.ComponentModel.ISupportInitialize).EndInit()
|
|
||||||
Me.grp7zGeneral.ResumeLayout(False)
|
Me.grp7zGeneral.ResumeLayout(False)
|
||||||
Me.grp7zGeneral.PerformLayout()
|
Me.grp7zGeneral.PerformLayout()
|
||||||
Me.pnlBackup.ResumeLayout(False)
|
Me.pnlBackup.ResumeLayout(False)
|
||||||
Me.pnlBackup.PerformLayout()
|
Me.pnlBackup.PerformLayout()
|
||||||
|
CType(Me.nudSupressBackupThreshold, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
Me.grpBackupHandling.ResumeLayout(False)
|
||||||
|
Me.grpBackupHandling.PerformLayout()
|
||||||
Me.pnl7z.ResumeLayout(False)
|
Me.pnl7z.ResumeLayout(False)
|
||||||
Me.grp7zAdvanced.ResumeLayout(False)
|
Me.grp7zAdvanced.ResumeLayout(False)
|
||||||
Me.grp7zAdvanced.PerformLayout()
|
Me.grp7zAdvanced.PerformLayout()
|
||||||
@@ -520,7 +550,6 @@ Partial Class frmSettings
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Friend WithEvents chkMonitorOnStartup As System.Windows.Forms.CheckBox
|
Friend WithEvents chkMonitorOnStartup As System.Windows.Forms.CheckBox
|
||||||
Friend WithEvents chkBackupConfirm As System.Windows.Forms.CheckBox
|
|
||||||
Friend WithEvents grpStartup As System.Windows.Forms.GroupBox
|
Friend WithEvents grpStartup As System.Windows.Forms.GroupBox
|
||||||
Friend WithEvents grpFolderOptions As System.Windows.Forms.GroupBox
|
Friend WithEvents grpFolderOptions As System.Windows.Forms.GroupBox
|
||||||
Friend WithEvents txtBackupFolder As System.Windows.Forms.TextBox
|
Friend WithEvents txtBackupFolder As System.Windows.Forms.TextBox
|
||||||
@@ -530,16 +559,10 @@ Partial Class frmSettings
|
|||||||
Friend WithEvents btnBackupFolder As System.Windows.Forms.Button
|
Friend WithEvents btnBackupFolder As System.Windows.Forms.Button
|
||||||
Friend WithEvents chkShowDetectionTips As System.Windows.Forms.CheckBox
|
Friend WithEvents chkShowDetectionTips As System.Windows.Forms.CheckBox
|
||||||
Friend WithEvents chkStartToTray As System.Windows.Forms.CheckBox
|
Friend WithEvents chkStartToTray As System.Windows.Forms.CheckBox
|
||||||
Friend WithEvents chkOverwriteWarning As System.Windows.Forms.CheckBox
|
|
||||||
Friend WithEvents chkCreateFolder As System.Windows.Forms.CheckBox
|
Friend WithEvents chkCreateFolder As System.Windows.Forms.CheckBox
|
||||||
Friend WithEvents chkRestoreOnLaunch As System.Windows.Forms.CheckBox
|
|
||||||
Friend WithEvents chkSync As System.Windows.Forms.CheckBox
|
Friend WithEvents chkSync As System.Windows.Forms.CheckBox
|
||||||
Friend WithEvents chkCheckSum As System.Windows.Forms.CheckBox
|
|
||||||
Friend WithEvents chkStartWindows As System.Windows.Forms.CheckBox
|
Friend WithEvents chkStartWindows As System.Windows.Forms.CheckBox
|
||||||
Friend WithEvents chkTimeTracking As System.Windows.Forms.CheckBox
|
Friend WithEvents chkTimeTracking As System.Windows.Forms.CheckBox
|
||||||
Friend WithEvents lblMinutes As Label
|
|
||||||
Friend WithEvents nudSupressBackupThreshold As NumericUpDown
|
|
||||||
Friend WithEvents chkSupressBackup As CheckBox
|
|
||||||
Friend WithEvents grp7zGeneral As GroupBox
|
Friend WithEvents grp7zGeneral As GroupBox
|
||||||
Friend WithEvents cboCompression As ComboBox
|
Friend WithEvents cboCompression As ComboBox
|
||||||
Friend WithEvents lblCompression As Label
|
Friend WithEvents lblCompression As Label
|
||||||
@@ -560,4 +583,13 @@ Partial Class frmSettings
|
|||||||
Friend WithEvents lstSettings As ListBox
|
Friend WithEvents lstSettings As ListBox
|
||||||
Friend WithEvents grp7zAdvanced As GroupBox
|
Friend WithEvents grp7zAdvanced As GroupBox
|
||||||
Friend WithEvents grp7zInformation As GroupBox
|
Friend WithEvents grp7zInformation As GroupBox
|
||||||
|
Friend WithEvents lblMinutes As Label
|
||||||
|
Friend WithEvents nudSupressBackupThreshold As NumericUpDown
|
||||||
|
Friend WithEvents chkSupressBackup As CheckBox
|
||||||
|
Friend WithEvents chkBackupConfirm As CheckBox
|
||||||
|
Friend WithEvents chkOverwriteWarning As CheckBox
|
||||||
|
Friend WithEvents grpBackupHandling As GroupBox
|
||||||
|
Friend WithEvents chkAutoMark As CheckBox
|
||||||
|
Friend WithEvents chkAutoRestore As CheckBox
|
||||||
|
Friend WithEvents chkRestoreNotify As CheckBox
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
+13
-15
@@ -4,7 +4,6 @@ Imports System.IO
|
|||||||
Public Class frmSettings
|
Public Class frmSettings
|
||||||
Dim bShutdown As Boolean = False
|
Dim bShutdown As Boolean = False
|
||||||
Dim bSyncSettingsChanged As Boolean = False
|
Dim bSyncSettingsChanged As Boolean = False
|
||||||
Dim bCheckSumDisabled As Boolean = False
|
|
||||||
Dim eCurrentSyncFields As clsGame.eOptionalSyncFields
|
Dim eCurrentSyncFields As clsGame.eOptionalSyncFields
|
||||||
Private oSettings As mgrSettings
|
Private oSettings As mgrSettings
|
||||||
|
|
||||||
@@ -48,7 +47,9 @@ Public Class frmSettings
|
|||||||
oSettings.DisableConfirmation = chkBackupConfirm.Checked
|
oSettings.DisableConfirmation = chkBackupConfirm.Checked
|
||||||
oSettings.CreateSubFolder = chkCreateFolder.Checked
|
oSettings.CreateSubFolder = chkCreateFolder.Checked
|
||||||
oSettings.ShowOverwriteWarning = chkOverwriteWarning.Checked
|
oSettings.ShowOverwriteWarning = chkOverwriteWarning.Checked
|
||||||
oSettings.RestoreOnLaunch = chkRestoreOnLaunch.Checked
|
oSettings.RestoreOnLaunch = chkRestoreNotify.Checked
|
||||||
|
oSettings.AutoRestore = chkAutoRestore.Checked
|
||||||
|
oSettings.AutoMark = chkAutoMark.Checked
|
||||||
oSettings.TimeTracking = chkTimeTracking.Checked
|
oSettings.TimeTracking = chkTimeTracking.Checked
|
||||||
oSettings.SupressBackup = chkSupressBackup.Checked
|
oSettings.SupressBackup = chkSupressBackup.Checked
|
||||||
oSettings.SupressBackupThreshold = nudSupressBackupThreshold.Value
|
oSettings.SupressBackupThreshold = nudSupressBackupThreshold.Value
|
||||||
@@ -61,12 +62,6 @@ Public Class frmSettings
|
|||||||
oSettings.Custom7zArguments = txt7zArguments.Text.Trim
|
oSettings.Custom7zArguments = txt7zArguments.Text.Trim
|
||||||
oSettings.Custom7zLocation = txt7zLocation.Text.Trim
|
oSettings.Custom7zLocation = txt7zLocation.Text.Trim
|
||||||
|
|
||||||
'We need to clear all checksums its turned off
|
|
||||||
If chkCheckSum.Checked = False And oSettings.CheckSum = True Then
|
|
||||||
bCheckSumDisabled = True
|
|
||||||
End If
|
|
||||||
oSettings.CheckSum = chkCheckSum.Checked
|
|
||||||
|
|
||||||
'Turning syncing from off to on is the same as changing the backup folder
|
'Turning syncing from off to on is the same as changing the backup folder
|
||||||
If chkSync.Checked = True And oSettings.Sync = False Then
|
If chkSync.Checked = True And oSettings.Sync = False Then
|
||||||
bSyncSettingsChanged = True
|
bSyncSettingsChanged = True
|
||||||
@@ -106,7 +101,6 @@ Public Class frmSettings
|
|||||||
If ValidateSettings() Then
|
If ValidateSettings() Then
|
||||||
oSettings.SaveSettings()
|
oSettings.SaveSettings()
|
||||||
If bSyncSettingsChanged Then mgrMonitorList.HandleBackupLocationChange(Settings)
|
If bSyncSettingsChanged Then mgrMonitorList.HandleBackupLocationChange(Settings)
|
||||||
If bCheckSumDisabled Then mgrManifest.DoManifestHashWipe()
|
|
||||||
Return True
|
Return True
|
||||||
Else
|
Else
|
||||||
Return False
|
Return False
|
||||||
@@ -177,10 +171,11 @@ Public Class frmSettings
|
|||||||
chkBackupConfirm.Checked = oSettings.DisableConfirmation
|
chkBackupConfirm.Checked = oSettings.DisableConfirmation
|
||||||
chkCreateFolder.Checked = oSettings.CreateSubFolder
|
chkCreateFolder.Checked = oSettings.CreateSubFolder
|
||||||
chkOverwriteWarning.Checked = oSettings.ShowOverwriteWarning
|
chkOverwriteWarning.Checked = oSettings.ShowOverwriteWarning
|
||||||
chkRestoreOnLaunch.Checked = oSettings.RestoreOnLaunch
|
chkRestoreNotify.Checked = oSettings.RestoreOnLaunch
|
||||||
|
chkAutoRestore.Checked = oSettings.AutoRestore
|
||||||
|
chkAutoMark.Checked = oSettings.AutoMark
|
||||||
txtBackupFolder.Text = oSettings.BackupFolder
|
txtBackupFolder.Text = oSettings.BackupFolder
|
||||||
chkSync.Checked = oSettings.Sync
|
chkSync.Checked = oSettings.Sync
|
||||||
chkCheckSum.Checked = oSettings.CheckSum
|
|
||||||
chkTimeTracking.Checked = oSettings.TimeTracking
|
chkTimeTracking.Checked = oSettings.TimeTracking
|
||||||
chkSupressBackup.Checked = oSettings.SupressBackup
|
chkSupressBackup.Checked = oSettings.SupressBackup
|
||||||
nudSupressBackupThreshold.Value = oSettings.SupressBackupThreshold
|
nudSupressBackupThreshold.Value = oSettings.SupressBackupThreshold
|
||||||
@@ -279,8 +274,10 @@ Public Class frmSettings
|
|||||||
'Set Form Text
|
'Set Form Text
|
||||||
lblMinutes.Text = frmSettings_lblMinutes
|
lblMinutes.Text = frmSettings_lblMinutes
|
||||||
chkSupressBackup.Text = frmSettings_chkSupressBackup
|
chkSupressBackup.Text = frmSettings_chkSupressBackup
|
||||||
chkCheckSum.Text = frmSettings_chkCheckSum
|
grpBackupHandling.Text = frmSettings_grpBackupHandling
|
||||||
chkRestoreOnLaunch.Text = frmSettings_chkRestoreOnLaunch
|
chkRestoreNotify.Text = frmSettings_chkRestoreNotify
|
||||||
|
chkAutoRestore.Text = frmSettings_chkAutoRestore
|
||||||
|
chkAutoMark.Text = frmSettings_chkAutoMark
|
||||||
chkOverwriteWarning.Text = frmSettings_chkOverwriteWarning
|
chkOverwriteWarning.Text = frmSettings_chkOverwriteWarning
|
||||||
chkCreateFolder.Text = frmSettings_chkCreateFolder
|
chkCreateFolder.Text = frmSettings_chkCreateFolder
|
||||||
chkBackupConfirm.Text = frmSettings_chkBackupConfirm
|
chkBackupConfirm.Text = frmSettings_chkBackupConfirm
|
||||||
@@ -339,13 +336,13 @@ Public Class frmSettings
|
|||||||
|
|
||||||
Private Sub btnBackupFolder_Click(sender As System.Object, e As System.EventArgs) Handles btnBackupFolder.Click
|
Private Sub btnBackupFolder_Click(sender As System.Object, e As System.EventArgs) Handles btnBackupFolder.Click
|
||||||
Dim sNewFolder As String
|
Dim sNewFolder As String
|
||||||
sNewFolder = mgrCommon.OpenFolderBrowser(frmSettings_BrowseFolder, oSettings.BackupFolder, True)
|
sNewFolder = mgrCommon.OpenFolderBrowser("Settings_Backup_Path", frmSettings_BrowseFolder, oSettings.BackupFolder, True, False)
|
||||||
If sNewFolder <> String.Empty Then txtBackupFolder.Text = sNewFolder
|
If sNewFolder <> String.Empty Then txtBackupFolder.Text = sNewFolder
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub btn7zLocation_Click(sender As Object, e As EventArgs) Handles btn7zLocation.Click
|
Private Sub btn7zLocation_Click(sender As Object, e As EventArgs) Handles btn7zLocation.Click
|
||||||
Dim sNewLocation As String
|
Dim sNewLocation As String
|
||||||
sNewLocation = mgrCommon.OpenFileBrowser(frmSettings_Browse7za, "exe", frmSettings_7zaFileType, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), False)
|
sNewLocation = mgrCommon.OpenFileBrowser("7z_Browse", frmSettings_Browse7za, "exe", frmSettings_7zaFileType, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), False)
|
||||||
If sNewLocation <> String.Empty Then
|
If sNewLocation <> String.Empty Then
|
||||||
txt7zLocation.Text = sNewLocation
|
txt7zLocation.Text = sNewLocation
|
||||||
GetUtilityInfo(txt7zLocation.Text)
|
GetUtilityInfo(txt7zLocation.Text)
|
||||||
@@ -375,4 +372,5 @@ Public Class frmSettings
|
|||||||
Private Sub lstSettings_SelectedValueChanged(sender As Object, e As EventArgs) Handles lstSettings.SelectedValueChanged
|
Private Sub lstSettings_SelectedValueChanged(sender As Object, e As EventArgs) Handles lstSettings.SelectedValueChanged
|
||||||
ChangePanel()
|
ChangePanel()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
@@ -215,7 +215,7 @@ Public Class frmStartUpWizard
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
sNewPath = mgrCommon.OpenFolderBrowser(frmStartUpWizard_BrowseFolder, sDefaultFolder, True)
|
sNewPath = mgrCommon.OpenFolderBrowser("Wizard_Backup_Path", frmStartUpWizard_BrowseFolder, sDefaultFolder, True, False)
|
||||||
|
|
||||||
If sNewPath <> String.Empty Then txtBackupPath.Text = sNewPath
|
If sNewPath <> String.Empty Then txtBackupPath.Text = sNewPath
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ Public Class frmVariableManager
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
sNewPath = mgrCommon.OpenFolderBrowser(frmVariableManager_PathBrowse, sDefaultFolder, False)
|
sNewPath = mgrCommon.OpenFolderBrowser("VM_Path", frmVariableManager_PathBrowse, sDefaultFolder, False, False)
|
||||||
|
|
||||||
If sNewPath <> String.Empty Then txtPath.Text = sNewPath
|
If sNewPath <> String.Empty Then txtPath.Text = sNewPath
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
@@ -106,6 +106,7 @@
|
|||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.Drawing" />
|
<Reference Include="System.Drawing" />
|
||||||
|
<Reference Include="System.Management" />
|
||||||
<Reference Include="System.Windows.Forms" />
|
<Reference Include="System.Windows.Forms" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
@@ -121,6 +122,7 @@
|
|||||||
<Import Include="System.Windows.Forms" />
|
<Import Include="System.Windows.Forms" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Compile Include="Classes\clsSavedPath.vb" />
|
||||||
<Compile Include="Classes\XML Serialize Classes\Tag.vb" />
|
<Compile Include="Classes\XML Serialize Classes\Tag.vb" />
|
||||||
<Compile Include="Classes\XML Serialize Classes\Game.vb" />
|
<Compile Include="Classes\XML Serialize Classes\Game.vb" />
|
||||||
<Compile Include="Classes\clsGameTag.vb" />
|
<Compile Include="Classes\clsGameTag.vb" />
|
||||||
@@ -220,6 +222,7 @@
|
|||||||
<Compile Include="Managers\mgrMonitorList.vb" />
|
<Compile Include="Managers\mgrMonitorList.vb" />
|
||||||
<Compile Include="Managers\mgrPath.vb" />
|
<Compile Include="Managers\mgrPath.vb" />
|
||||||
<Compile Include="Managers\mgrRestore.vb" />
|
<Compile Include="Managers\mgrRestore.vb" />
|
||||||
|
<Compile Include="Managers\mgrSavedPath.vb" />
|
||||||
<Compile Include="Managers\mgrSettings.vb" />
|
<Compile Include="Managers\mgrSettings.vb" />
|
||||||
<Compile Include="Managers\mgrBackup.vb" />
|
<Compile Include="Managers\mgrBackup.vb" />
|
||||||
<Compile Include="Managers\mgrSQLite.vb" />
|
<Compile Include="Managers\mgrSQLite.vb" />
|
||||||
@@ -344,6 +347,7 @@
|
|||||||
<Content Include="Utilities\x86\7za.exe">
|
<Content Include="Utilities\x86\7za.exe">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="x64\sqlite3.dll" />
|
||||||
<Content Include="x86\sqlite3.dll" />
|
<Content Include="x86\sqlite3.dll" />
|
||||||
<None Include="Resources\gbm.ico" />
|
<None Include="Resources\gbm.ico" />
|
||||||
<Content Include="Resources\Admin.png" />
|
<Content Include="Resources\Admin.png" />
|
||||||
@@ -356,7 +360,6 @@
|
|||||||
<Content Include="Resources\Inbox.png" />
|
<Content Include="Resources\Inbox.png" />
|
||||||
<Content Include="Resources\type.ico" />
|
<Content Include="Resources\type.ico" />
|
||||||
<Content Include="Resources\User.png" />
|
<Content Include="Resources\User.png" />
|
||||||
<Content Include="x64\sqlite3.dll" />
|
|
||||||
<None Include="Resources\Stopped.png" />
|
<None Include="Resources\Stopped.png" />
|
||||||
<None Include="Resources\Detected.png" />
|
<None Include="Resources\Detected.png" />
|
||||||
<None Include="Resources\Ready.png" />
|
<None Include="Resources\Ready.png" />
|
||||||
|
|||||||
+34
-11
@@ -87,9 +87,25 @@ Public Class mgrBackup
|
|||||||
|
|
||||||
Public Function CheckBackupPrereq(ByVal oGame As clsGame) As Boolean
|
Public Function CheckBackupPrereq(ByVal oGame As clsGame) As Boolean
|
||||||
Dim sBackupFile As String = oSettings.BackupFolder
|
Dim sBackupFile As String = oSettings.BackupFolder
|
||||||
|
Dim lAvailableSpace As Long = mgrCommon.GetAvailableDiskSpace(sBackupFile)
|
||||||
|
Dim lFolderSize As Long = mgrCommon.GetFolderSize(oGame.Path, oGame.IncludeArray, oGame.ExcludeArray)
|
||||||
|
|
||||||
If oSettings.CreateSubFolder Then sBackupFile = sBackupFile & Path.DirectorySeparatorChar & oGame.Name
|
If oSettings.CreateSubFolder Then sBackupFile = sBackupFile & Path.DirectorySeparatorChar & oGame.Name
|
||||||
sBackupFile = sBackupFile & Path.DirectorySeparatorChar & oGame.Name & ".7z"
|
sBackupFile = sBackupFile & Path.DirectorySeparatorChar & oGame.Name & ".7z"
|
||||||
|
|
||||||
|
'Show Available Space
|
||||||
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrCommon_AvailableDiskSpace, mgrCommon.FormatDiskSpace(lAvailableSpace)), False, ToolTipIcon.Info, True)
|
||||||
|
|
||||||
|
'Show Save Folder Size
|
||||||
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrCommon_SavedGameFolderSize, New String() {oGame.Name, mgrCommon.FormatDiskSpace(lFolderSize)}), False, ToolTipIcon.Info, True)
|
||||||
|
|
||||||
|
If lFolderSize >= lAvailableSpace Then
|
||||||
|
If mgrCommon.ShowMessage(mgrBackup_ConfirmDiskSpace, MsgBoxStyle.YesNo) = MsgBoxResult.No Then
|
||||||
|
RaiseEvent UpdateLog(mgrBackup_ErrorDiskSpace, False, ToolTipIcon.Error, True)
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
If mgrRestore.CheckManifest(oGame.Name) Then
|
If mgrRestore.CheckManifest(oGame.Name) Then
|
||||||
If mgrCommon.ShowMessage(mgrBackup_ConfirmManifestConflict, oGame.Name, MsgBoxStyle.YesNo) = MsgBoxResult.No Then
|
If mgrCommon.ShowMessage(mgrBackup_ConfirmManifestConflict, oGame.Name, MsgBoxStyle.YesNo) = MsgBoxResult.No Then
|
||||||
RaiseEvent UpdateLog(mgrBackup_ErrorManifestConflict, False, ToolTipIcon.Error, True)
|
RaiseEvent UpdateLog(mgrBackup_ErrorManifestConflict, False, ToolTipIcon.Error, True)
|
||||||
@@ -222,13 +238,20 @@ Public Class mgrBackup
|
|||||||
End While
|
End While
|
||||||
prs7z.WaitForExit()
|
prs7z.WaitForExit()
|
||||||
If Not CancelOperation Then
|
If Not CancelOperation Then
|
||||||
If prs7z.ExitCode = 0 Then
|
Select Case prs7z.ExitCode
|
||||||
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrBackup_BackupComplete, New String() {oGame.Name, mgrCommon.GetFileSize(sBackupFile)}), False, ToolTipIcon.Info, True)
|
Case 0
|
||||||
bBackupCompleted = True
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrBackup_BackupComplete, New String() {oGame.Name, mgrCommon.FormatDiskSpace(mgrCommon.GetFileSize(sBackupFile))}), False, ToolTipIcon.Info, True)
|
||||||
Else
|
bBackupCompleted = True
|
||||||
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrBackup_BackupWarnings, oGame.Name), True, ToolTipIcon.Warning, True)
|
Case 1
|
||||||
bBackupCompleted = False
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrBackup_7zWarnings, oGame.Name), True, ToolTipIcon.Warning, True)
|
||||||
End If
|
bBackupCompleted = True
|
||||||
|
Case 2
|
||||||
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrBackup_7zFatalError, oGame.Name), True, ToolTipIcon.Error, True)
|
||||||
|
bBackupCompleted = False
|
||||||
|
Case 7
|
||||||
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrBackup_7zCommandFailure, oGame.Name), True, ToolTipIcon.Error, True)
|
||||||
|
bBackupCompleted = False
|
||||||
|
End Select
|
||||||
End If
|
End If
|
||||||
prs7z.Dispose()
|
prs7z.Dispose()
|
||||||
Else
|
Else
|
||||||
@@ -242,10 +265,10 @@ Public Class mgrBackup
|
|||||||
|
|
||||||
'Write Main Manifest
|
'Write Main Manifest
|
||||||
If bBackupCompleted Then
|
If bBackupCompleted Then
|
||||||
If oSettings.CheckSum Then
|
|
||||||
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrBackup_GenerateHash, oGame.Name), False, ToolTipIcon.Info, True)
|
'Generate checksum for new backup
|
||||||
sHash = mgrHash.Generate_SHA256_Hash(sBackupFile)
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrBackup_GenerateHash, oGame.Name), False, ToolTipIcon.Info, True)
|
||||||
End If
|
sHash = mgrHash.Generate_SHA256_Hash(sBackupFile)
|
||||||
|
|
||||||
If Not DoManifestUpdate(oGame, sBackupFile, dTimeStamp, sHash) Then
|
If Not DoManifestUpdate(oGame, sBackupFile, dTimeStamp, sHash) Then
|
||||||
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrBackup_ErrorManifestFailure, oGame.Name), True, ToolTipIcon.Error, True)
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrBackup_ErrorManifestFailure, oGame.Name), True, ToolTipIcon.Error, True)
|
||||||
|
|||||||
+178
-26
@@ -2,6 +2,7 @@
|
|||||||
Imports System.Net
|
Imports System.Net
|
||||||
Imports System.IO
|
Imports System.IO
|
||||||
Imports System.Security.Principal
|
Imports System.Security.Principal
|
||||||
|
Imports System.Text.RegularExpressions
|
||||||
|
|
||||||
Public Class mgrCommon
|
Public Class mgrCommon
|
||||||
|
|
||||||
@@ -61,30 +62,66 @@ Public Class mgrCommon
|
|||||||
End If
|
End If
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Shared Function SaveFileBrowser(ByVal sTitle As String, ByVal sExtension As String, ByVal sFileType As String, ByVal sDefaultFolder As String, ByVal sDefaultFile As String) As String
|
Public Shared Function SaveFileBrowser(ByVal sName As String, ByVal sTitle As String, ByVal sExtension As String, ByVal sFileType As String, ByVal sDefaultFolder As String,
|
||||||
|
ByVal sDefaultFile As String, Optional ByVal bSavedPath As Boolean = True) As String
|
||||||
Dim fbBrowser As New SaveFileDialog
|
Dim fbBrowser As New SaveFileDialog
|
||||||
|
Dim oSavedPath As New clsSavedPath
|
||||||
|
|
||||||
fbBrowser.Title = sTitle
|
fbBrowser.Title = sTitle
|
||||||
fbBrowser.DefaultExt = sExtension
|
fbBrowser.DefaultExt = sExtension
|
||||||
fbBrowser.Filter = FormatString(mgrCommon_FilesFilter, New String() {sFileType, sExtension, sExtension})
|
fbBrowser.Filter = FormatString(mgrCommon_FilesFilter, New String() {sFileType, sExtension, sExtension})
|
||||||
fbBrowser.InitialDirectory = sDefaultFolder
|
|
||||||
fbBrowser.FileName = sDefaultFile
|
fbBrowser.FileName = sDefaultFile
|
||||||
|
fbBrowser.InitialDirectory = sDefaultFolder
|
||||||
|
|
||||||
If fbBrowser.ShowDialog() = Windows.Forms.DialogResult.OK Then
|
If bSavedPath Then
|
||||||
Return fbBrowser.FileName
|
oSavedPath = mgrSavedPath.GetPathByName(sName)
|
||||||
|
If oSavedPath.Path <> String.Empty Then
|
||||||
|
If Directory.Exists(oSavedPath.Path) Then
|
||||||
|
fbBrowser.InitialDirectory = oSavedPath.Path
|
||||||
|
End If
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Return String.Empty
|
If fbBrowser.ShowDialog() = Windows.Forms.DialogResult.OK Then
|
||||||
|
If bSavedPath Then
|
||||||
|
oSavedPath.PathName = sName
|
||||||
|
oSavedPath.Path = Path.GetDirectoryName(fbBrowser.FileName)
|
||||||
|
mgrSavedPath.AddUpdatePath(oSavedPath)
|
||||||
|
End If
|
||||||
|
|
||||||
|
Return fbBrowser.FileName
|
||||||
|
End If
|
||||||
|
|
||||||
|
Return String.Empty
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Shared Function OpenFileBrowser(ByVal sTitle As String, ByVal sExtension As String, ByVal sFileType As String, ByVal sDefaultFolder As String, ByVal bMulti As Boolean) As String
|
Public Shared Function OpenFileBrowser(ByVal sName As String, ByVal sTitle As String, ByVal sExtension As String, ByVal sFileType As String, ByVal sDefaultFolder As String,
|
||||||
|
ByVal bMulti As Boolean, Optional ByVal bSavedPath As Boolean = True) As String
|
||||||
Dim fbBrowser As New OpenFileDialog
|
Dim fbBrowser As New OpenFileDialog
|
||||||
|
Dim oSavedPath As New clsSavedPath
|
||||||
|
|
||||||
fbBrowser.Title = sTitle
|
fbBrowser.Title = sTitle
|
||||||
fbBrowser.DefaultExt = sExtension
|
fbBrowser.DefaultExt = sExtension
|
||||||
fbBrowser.Filter = FormatString(mgrCommon_FilesFilter, New String() {sFileType, sExtension, sExtension})
|
fbBrowser.Filter = FormatString(mgrCommon_FilesFilter, New String() {sFileType, sExtension, sExtension})
|
||||||
fbBrowser.InitialDirectory = sDefaultFolder
|
|
||||||
fbBrowser.Multiselect = bMulti
|
fbBrowser.Multiselect = bMulti
|
||||||
|
fbBrowser.InitialDirectory = sDefaultFolder
|
||||||
|
|
||||||
|
If bSavedPath Then
|
||||||
|
oSavedPath = mgrSavedPath.GetPathByName(sName)
|
||||||
|
If oSavedPath.Path <> String.Empty Then
|
||||||
|
If Directory.Exists(oSavedPath.Path) Then
|
||||||
|
fbBrowser.InitialDirectory = oSavedPath.Path
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
If fbBrowser.ShowDialog() = Windows.Forms.DialogResult.OK Then
|
If fbBrowser.ShowDialog() = Windows.Forms.DialogResult.OK Then
|
||||||
|
If bSavedPath Then
|
||||||
|
oSavedPath.PathName = sName
|
||||||
|
oSavedPath.Path = Path.GetDirectoryName(fbBrowser.FileName)
|
||||||
|
mgrSavedPath.AddUpdatePath(oSavedPath)
|
||||||
|
End If
|
||||||
|
|
||||||
If bMulti Then
|
If bMulti Then
|
||||||
Dim sFileNames As String = String.Empty
|
Dim sFileNames As String = String.Empty
|
||||||
For Each sFileName As String In fbBrowser.FileNames
|
For Each sFileName As String In fbBrowser.FileNames
|
||||||
@@ -100,12 +137,31 @@ Public Class mgrCommon
|
|||||||
Return String.Empty
|
Return String.Empty
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Shared Function OpenFolderBrowser(ByVal sTitle As String, ByVal sDefaultFolder As String, ByVal bEnableNewFolder As Boolean) As String
|
Public Shared Function OpenFolderBrowser(ByVal sName As String, ByVal sTitle As String, ByVal sDefaultFolder As String, ByVal bEnableNewFolder As Boolean,
|
||||||
|
Optional ByVal bSavedPath As Boolean = True) As String
|
||||||
Dim fbBrowser As New FolderBrowserDialog
|
Dim fbBrowser As New FolderBrowserDialog
|
||||||
|
Dim oSavedPath As New clsSavedPath
|
||||||
|
|
||||||
fbBrowser.Description = sTitle
|
fbBrowser.Description = sTitle
|
||||||
fbBrowser.SelectedPath = sDefaultFolder
|
fbBrowser.SelectedPath = sDefaultFolder
|
||||||
fbBrowser.ShowNewFolderButton = bEnableNewFolder
|
fbBrowser.ShowNewFolderButton = bEnableNewFolder
|
||||||
|
|
||||||
|
If bSavedPath Then
|
||||||
|
oSavedPath = mgrSavedPath.GetPathByName(sName)
|
||||||
|
If oSavedPath.Path <> String.Empty Then
|
||||||
|
If Directory.Exists(oSavedPath.Path) Then
|
||||||
|
fbBrowser.SelectedPath = oSavedPath.Path
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
If fbBrowser.ShowDialog() = Windows.Forms.DialogResult.OK Then
|
If fbBrowser.ShowDialog() = Windows.Forms.DialogResult.OK Then
|
||||||
|
If bSavedPath Then
|
||||||
|
oSavedPath.PathName = sName
|
||||||
|
oSavedPath.Path = fbBrowser.SelectedPath
|
||||||
|
mgrSavedPath.AddUpdatePath(oSavedPath)
|
||||||
|
End If
|
||||||
|
|
||||||
Return fbBrowser.SelectedPath
|
Return fbBrowser.SelectedPath
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -165,6 +221,120 @@ Public Class mgrCommon
|
|||||||
Return eSyncFields And (Not eSyncField)
|
Return eSyncFields And (Not eSyncField)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
'Get a file size
|
||||||
|
Public Shared Function GetFileSize(ByVal sFile As String) As Long
|
||||||
|
Dim oFileInfo As FileInfo
|
||||||
|
Dim dFileSize As Long = 0
|
||||||
|
|
||||||
|
Try
|
||||||
|
oFileInfo = New FileInfo(sFile)
|
||||||
|
dFileSize = oFileInfo.Length
|
||||||
|
Catch ex As Exception
|
||||||
|
'Do Nothing
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Return dFileSize
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function WildcardToRegex(ByVal sPattern As String) As String
|
||||||
|
Dim sRegEx As String
|
||||||
|
sRegEx = sPattern.Replace("*", ".*")
|
||||||
|
sRegEx = sRegEx.Replace("?", ".")
|
||||||
|
Return sRegEx
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function CompareValueToArrayRegEx(ByVal sValue As String, ByVal sValues As String()) As Boolean
|
||||||
|
For Each se As String In sValues
|
||||||
|
If Regex.IsMatch(sValue, WildcardToRegex(se)) Then
|
||||||
|
Return True
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
Return False
|
||||||
|
End Function
|
||||||
|
|
||||||
|
'Calculate the current size of a folder
|
||||||
|
Public Shared Function GetFolderSize(ByVal sPath As String, ByVal sInclude As String(), ByVal sExclude As String())
|
||||||
|
Dim oFolder As DirectoryInfo
|
||||||
|
Dim bInclude As Boolean
|
||||||
|
Dim bExclude As Boolean
|
||||||
|
Dim lSize As Long = 0
|
||||||
|
|
||||||
|
Try
|
||||||
|
oFolder = New DirectoryInfo(sPath)
|
||||||
|
|
||||||
|
'Files
|
||||||
|
For Each fi As FileInfo In oFolder.EnumerateFiles()
|
||||||
|
If sInclude.Length > 0 Then
|
||||||
|
bInclude = CompareValueToArrayRegEx(fi.Name, sInclude) Or CompareValueToArrayRegEx(Path.GetDirectoryName(sPath), sInclude)
|
||||||
|
Else
|
||||||
|
bInclude = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
If sExclude.Length > 0 Then
|
||||||
|
bExclude = CompareValueToArrayRegEx(fi.Name, sExclude) Or CompareValueToArrayRegEx(Path.GetDirectoryName(sPath), sExclude)
|
||||||
|
Else
|
||||||
|
bExclude = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
If bInclude And Not bExclude Then
|
||||||
|
lSize += fi.Length
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
'Sub Folders
|
||||||
|
For Each di As DirectoryInfo In oFolder.EnumerateDirectories()
|
||||||
|
If Not ((di.Attributes And FileAttributes.ReparsePoint) = FileAttributes.ReparsePoint) Then
|
||||||
|
If sExclude.Length > 0 Then
|
||||||
|
bExclude = CompareValueToArrayRegEx(di.Name, sExclude)
|
||||||
|
Else
|
||||||
|
bExclude = False
|
||||||
|
End If
|
||||||
|
If Not bExclude Then
|
||||||
|
lSize += GetFolderSize(di.FullName, sInclude, sExclude)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
Catch
|
||||||
|
'Do Nothing
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Return lSize
|
||||||
|
End Function
|
||||||
|
|
||||||
|
'Format Disk Space Amounts
|
||||||
|
Public Shared Function FormatDiskSpace(ByVal lSize As Long)
|
||||||
|
|
||||||
|
Select Case lSize
|
||||||
|
Case >= 1125899906842624
|
||||||
|
Return FormatString(mgrCommon_PB, Math.Round(lSize / 1125899906842624, 2))
|
||||||
|
Case >= 1099511627776
|
||||||
|
Return FormatString(mgrCommon_TB, Math.Round(lSize / 1099511627776, 2))
|
||||||
|
Case >= 1073741824
|
||||||
|
Return FormatString(mgrCommon_GB, Math.Round(lSize / 1073741824, 2))
|
||||||
|
Case >= 1048576
|
||||||
|
Return FormatString(mgrCommon_MB, Math.Round(lSize / 1048576, 2))
|
||||||
|
Case >= 1024
|
||||||
|
Return FormatString(mgrCommon_KB, Math.Round(lSize / 1024, 2))
|
||||||
|
Case >= 0
|
||||||
|
Return FormatString(mgrCommon_B, lSize)
|
||||||
|
End Select
|
||||||
|
|
||||||
|
Return lSize
|
||||||
|
End Function
|
||||||
|
|
||||||
|
'Get available disk space on a drive
|
||||||
|
Public Shared Function GetAvailableDiskSpace(ByVal sPath As String) As Long
|
||||||
|
Dim oDrive As DriveInfo
|
||||||
|
Dim lAvailableSpace As Long = 0
|
||||||
|
Try
|
||||||
|
oDrive = New DriveInfo(Path.GetPathRoot(sPath))
|
||||||
|
lAvailableSpace = oDrive.AvailableFreeSpace
|
||||||
|
Catch
|
||||||
|
'Do Nothing
|
||||||
|
End Try
|
||||||
|
Return lAvailableSpace
|
||||||
|
End Function
|
||||||
|
|
||||||
'Delete file based on OS type
|
'Delete file based on OS type
|
||||||
Public Shared Sub DeleteFile(ByVal sPath As String, Optional ByVal bRecycle As Boolean = True)
|
Public Shared Sub DeleteFile(ByVal sPath As String, Optional ByVal bRecycle As Boolean = True)
|
||||||
If File.Exists(sPath) Then
|
If File.Exists(sPath) Then
|
||||||
@@ -224,24 +394,6 @@ Public Class mgrCommon
|
|||||||
End Try
|
End Try
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
'Get a file size
|
|
||||||
Public Shared Function GetFileSize(ByVal sFile As String) As String
|
|
||||||
Dim oFileInfo As FileInfo
|
|
||||||
Dim dFileSize As Double
|
|
||||||
|
|
||||||
Try
|
|
||||||
oFileInfo = New FileInfo(sFile)
|
|
||||||
dFileSize = oFileInfo.Length
|
|
||||||
If dFileSize > 1048576 Then
|
|
||||||
Return FormatString(App_MB, Math.Round(dFileSize / 1048576, 2).ToString)
|
|
||||||
Else
|
|
||||||
Return FormatString(App_KB, Math.Round(dFileSize / 1024, 2).ToString)
|
|
||||||
End If
|
|
||||||
Catch ex As Exception
|
|
||||||
Return String.Empty
|
|
||||||
End Try
|
|
||||||
End Function
|
|
||||||
|
|
||||||
'Handles no extra parameters
|
'Handles no extra parameters
|
||||||
Public Shared Function ShowMessage(ByVal sMsg As String, ByVal oType As MsgBoxStyle) As MsgBoxResult
|
Public Shared Function ShowMessage(ByVal sMsg As String, ByVal oType As MsgBoxStyle) As MsgBoxResult
|
||||||
Dim oResult As MsgBoxResult
|
Dim oResult As MsgBoxResult
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ Public Class mgrMonitorList
|
|||||||
oGame.Enabled = CBool(dr("Enabled"))
|
oGame.Enabled = CBool(dr("Enabled"))
|
||||||
oGame.MonitorOnly = CBool(dr("MonitorOnly"))
|
oGame.MonitorOnly = CBool(dr("MonitorOnly"))
|
||||||
oGame.BackupLimit = CInt(dr("BackupLimit"))
|
oGame.BackupLimit = CInt(dr("BackupLimit"))
|
||||||
|
oGame.CleanFolder = CBool(dr("CleanFolder"))
|
||||||
|
If Not IsDBNull(dr("Parameter")) Then oGame.Parameter = CStr(dr("Parameter"))
|
||||||
|
|
||||||
Return oGame
|
Return oGame
|
||||||
End Function
|
End Function
|
||||||
@@ -54,6 +56,8 @@ Public Class mgrMonitorList
|
|||||||
hshParams.Add("Enabled", oGame.Enabled)
|
hshParams.Add("Enabled", oGame.Enabled)
|
||||||
hshParams.Add("MonitorOnly", oGame.MonitorOnly)
|
hshParams.Add("MonitorOnly", oGame.MonitorOnly)
|
||||||
hshParams.Add("BackupLimit", oGame.BackupLimit)
|
hshParams.Add("BackupLimit", oGame.BackupLimit)
|
||||||
|
hshParams.Add("CleanFolder", oGame.CleanFolder)
|
||||||
|
hshParams.Add("Parameter", oGame.Parameter)
|
||||||
|
|
||||||
Return hshParams
|
Return hshParams
|
||||||
End Function
|
End Function
|
||||||
@@ -94,7 +98,7 @@ Public Class mgrMonitorList
|
|||||||
Dim hshParams As Hashtable
|
Dim hshParams As Hashtable
|
||||||
|
|
||||||
sSQL = "INSERT INTO monitorlist VALUES (@ID, @Name, @Process, @Path, @AbsolutePath, @FolderSave, @FileType, @TimeStamp, "
|
sSQL = "INSERT INTO monitorlist VALUES (@ID, @Name, @Process, @Path, @AbsolutePath, @FolderSave, @FileType, @TimeStamp, "
|
||||||
sSQL &= "@ExcludeList, @ProcessPath, @Icon, @Hours, @Version, @Company, @Enabled, @MonitorOnly, @BackupLimit)"
|
sSQL &= "@ExcludeList, @ProcessPath, @Icon, @Hours, @Version, @Company, @Enabled, @MonitorOnly, @BackupLimit, @CleanFolder, @Parameter)"
|
||||||
|
|
||||||
'Parameters
|
'Parameters
|
||||||
hshParams = SetCoreParameters(oGame)
|
hshParams = SetCoreParameters(oGame)
|
||||||
@@ -110,7 +114,7 @@ Public Class mgrMonitorList
|
|||||||
|
|
||||||
sSQL = "UPDATE monitorlist SET Name=@Name, Process=@Process, Path=@Path, AbsolutePath=@AbsolutePath, FolderSave=@FolderSave, "
|
sSQL = "UPDATE monitorlist SET Name=@Name, Process=@Process, Path=@Path, AbsolutePath=@AbsolutePath, FolderSave=@FolderSave, "
|
||||||
sSQL &= "FileType=@FileType, TimeStamp=@TimeStamp, ExcludeList=@ExcludeList, ProcessPath=@ProcessPath, Icon=@Icon, "
|
sSQL &= "FileType=@FileType, TimeStamp=@TimeStamp, ExcludeList=@ExcludeList, ProcessPath=@ProcessPath, Icon=@Icon, "
|
||||||
sSQL &= "Hours=@Hours, Version=@Version, Company=@Company, Enabled=@Enabled, MonitorOnly=@MonitorOnly, BackupLimit=@BackupLimit WHERE MonitorID=@ID"
|
sSQL &= "Hours=@Hours, Version=@Version, Company=@Company, Enabled=@Enabled, MonitorOnly=@MonitorOnly, BackupLimit=@BackupLimit, CleanFolder=@CleanFolder, Parameter=@Parameter WHERE MonitorID=@ID"
|
||||||
|
|
||||||
'Parameters
|
'Parameters
|
||||||
hshParams = SetCoreParameters(oGame)
|
hshParams = SetCoreParameters(oGame)
|
||||||
@@ -264,6 +268,31 @@ Public Class mgrMonitorList
|
|||||||
End If
|
End If
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function DoDuplicateParameterCheck(ByVal sProcess As String, ByVal sParameter As String, Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local, Optional ByVal sExcludeID As String = "") As Boolean
|
||||||
|
Dim oDatabase As New mgrSQLite(iSelectDB)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim oData As DataSet
|
||||||
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
|
sSQL = "SELECT * FROM monitorlist WHERE Process = @Process AND Parameter = @Parameter"
|
||||||
|
|
||||||
|
hshParams.Add("Process", sProcess)
|
||||||
|
hshParams.Add("Parameter", sParameter)
|
||||||
|
|
||||||
|
If sExcludeID <> String.Empty Then
|
||||||
|
sSQL &= " AND MonitorID <> @MonitorID"
|
||||||
|
hshParams.Add("MonitorID", sExcludeID)
|
||||||
|
End If
|
||||||
|
|
||||||
|
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
||||||
|
|
||||||
|
If oData.Tables(0).Rows.Count > 0 Then
|
||||||
|
Return True
|
||||||
|
Else
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
End Function
|
||||||
|
|
||||||
'Sync Functions
|
'Sync Functions
|
||||||
Public Shared Sub DoListAddUpdateSync(ByVal hshGames As Hashtable, Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local,
|
Public Shared Sub DoListAddUpdateSync(ByVal hshGames As Hashtable, Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local,
|
||||||
Optional ByVal eSyncFields As clsGame.eOptionalSyncFields = clsGame.eOptionalSyncFields.None)
|
Optional ByVal eSyncFields As clsGame.eOptionalSyncFields = clsGame.eOptionalSyncFields.None)
|
||||||
@@ -315,11 +344,11 @@ Public Class mgrMonitorList
|
|||||||
sVersion = "(SELECT Version FROM monitorlist WHERE MonitorID=@ID)"
|
sVersion = "(SELECT Version FROM monitorlist WHERE MonitorID=@ID)"
|
||||||
End If
|
End If
|
||||||
|
|
||||||
sSQL = "INSERT OR REPLACE INTO monitorlist (MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit) "
|
sSQL = "INSERT OR REPLACE INTO monitorlist (MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit, CleanFolder, Parameter) "
|
||||||
sSQL &= "VALUES (@ID, @Name, @Process, @Path, @AbsolutePath, @FolderSave, @FileType, "
|
sSQL &= "VALUES (@ID, @Name, @Process, @Path, @AbsolutePath, @FolderSave, @FileType, "
|
||||||
sSQL &= sTimeStamp & ", @ExcludeList, " & sGamePath & ", "
|
sSQL &= sTimeStamp & ", @ExcludeList, " & sGamePath & ", "
|
||||||
sSQL &= sIcon & ", @Hours, " & sVersion & ", "
|
sSQL &= sIcon & ", @Hours, " & sVersion & ", "
|
||||||
sSQL &= sCompany & ", " & sMonitorGame & ", @MonitorOnly, " & sBackupLimit & ");"
|
sSQL &= sCompany & ", " & sMonitorGame & ", @MonitorOnly, " & sBackupLimit & ", @CleanFolder, @Parameter);"
|
||||||
|
|
||||||
For Each oGame As clsGame In hshGames.Values
|
For Each oGame As clsGame In hshGames.Values
|
||||||
hshParams = New Hashtable
|
hshParams = New Hashtable
|
||||||
@@ -335,6 +364,8 @@ Public Class mgrMonitorList
|
|||||||
hshParams.Add("ExcludeList", oGame.ExcludeList)
|
hshParams.Add("ExcludeList", oGame.ExcludeList)
|
||||||
hshParams.Add("Hours", oGame.Hours)
|
hshParams.Add("Hours", oGame.Hours)
|
||||||
hshParams.Add("MonitorOnly", oGame.MonitorOnly)
|
hshParams.Add("MonitorOnly", oGame.MonitorOnly)
|
||||||
|
hshParams.Add("CleanFolder", oGame.CleanFolder)
|
||||||
|
hshParams.Add("Parameter", oGame.Parameter)
|
||||||
|
|
||||||
'Optional Parameters
|
'Optional Parameters
|
||||||
If (eSyncFields And clsGame.eOptionalSyncFields.Company) = clsGame.eOptionalSyncFields.Company Then
|
If (eSyncFields And clsGame.eOptionalSyncFields.Company) = clsGame.eOptionalSyncFields.Company Then
|
||||||
@@ -471,9 +502,9 @@ Public Class mgrMonitorList
|
|||||||
|
|
||||||
Select Case eFilterType
|
Select Case eFilterType
|
||||||
Case frmFilter.eFilterType.NoFilter
|
Case frmFilter.eFilterType.NoFilter
|
||||||
sSQL = "SELECT MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit FROM monitorlist ORDER BY Name Asc"
|
sSQL = "SELECT MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit, CleanFolder, Parameter FROM monitorlist ORDER BY Name Asc"
|
||||||
Case frmFilter.eFilterType.FieldAnd, frmFilter.eFilterType.FieldOr
|
Case frmFilter.eFilterType.FieldAnd, frmFilter.eFilterType.FieldOr
|
||||||
sSQL = "SELECT MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit FROM monitorlist"
|
sSQL = "SELECT MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit, CleanFolder, Parameter FROM monitorlist"
|
||||||
|
|
||||||
If hshStringFilters.Count > 0 Then
|
If hshStringFilters.Count > 0 Then
|
||||||
sSQL &= " WHERE ("
|
sSQL &= " WHERE ("
|
||||||
@@ -495,7 +526,7 @@ Public Class mgrMonitorList
|
|||||||
End If
|
End If
|
||||||
sSQL &= " ORDER BY Name Asc"
|
sSQL &= " ORDER BY Name Asc"
|
||||||
Case frmFilter.eFilterType.AnyTag
|
Case frmFilter.eFilterType.AnyTag
|
||||||
sSQL = "SELECT DISTINCT MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit FROM monitorlist "
|
sSQL = "SELECT DISTINCT MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit, CleanFolder, Parameter FROM monitorlist "
|
||||||
sSQL &= "NATURAL JOIN gametags WHERE gametags.TagID IN ("
|
sSQL &= "NATURAL JOIN gametags WHERE gametags.TagID IN ("
|
||||||
|
|
||||||
For Each oTag As clsTag In oTagFilters
|
For Each oTag As clsTag In oTagFilters
|
||||||
@@ -507,7 +538,7 @@ Public Class mgrMonitorList
|
|||||||
sSQL = sSQL.TrimEnd(",")
|
sSQL = sSQL.TrimEnd(",")
|
||||||
sSQL &= ") ORDER BY Name Asc"
|
sSQL &= ") ORDER BY Name Asc"
|
||||||
Case frmFilter.eFilterType.AllTags
|
Case frmFilter.eFilterType.AllTags
|
||||||
sSQL = "SELECT MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit FROM monitorlist WHERE MonitorID IN "
|
sSQL = "SELECT MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit, CleanFolder, Parameter FROM monitorlist WHERE MonitorID IN "
|
||||||
|
|
||||||
For Each oTag As clsTag In oTagFilters
|
For Each oTag As clsTag In oTagFilters
|
||||||
sSQL &= "(SELECT MonitorID FROM gametags WHERE monitorlist.MonitorID = gametags.MonitorID And TagID = @TagID" & iCounter & ")"
|
sSQL &= "(SELECT MonitorID FROM gametags WHERE monitorlist.MonitorID = gametags.MonitorID And TagID = @TagID" & iCounter & ")"
|
||||||
@@ -520,7 +551,7 @@ Public Class mgrMonitorList
|
|||||||
|
|
||||||
sSQL &= " ORDER BY Name Asc"
|
sSQL &= " ORDER BY Name Asc"
|
||||||
Case frmFilter.eFilterType.NoTags
|
Case frmFilter.eFilterType.NoTags
|
||||||
sSQL = "SELECT MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit FROM monitorlist WHERE MonitorID NOT IN (SELECT MonitorID FROM gametags) ORDER BY Name Asc"
|
sSQL = "SELECT MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit, CleanFolder, Parameter FROM monitorlist WHERE MonitorID NOT IN (SELECT MonitorID FROM gametags) ORDER BY Name Asc"
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
Return sSQL
|
Return sSQL
|
||||||
@@ -574,6 +605,7 @@ Public Class mgrMonitorList
|
|||||||
oGame.FolderSave = CBool(dr("FolderSave"))
|
oGame.FolderSave = CBool(dr("FolderSave"))
|
||||||
If Not IsDBNull(dr("FileType")) Then oGame.FileType = CStr(dr("FileType"))
|
If Not IsDBNull(dr("FileType")) Then oGame.FileType = CStr(dr("FileType"))
|
||||||
If Not IsDBNull(dr("ExcludeList")) Then oGame.ExcludeList = CStr(dr("ExcludeList"))
|
If Not IsDBNull(dr("ExcludeList")) Then oGame.ExcludeList = CStr(dr("ExcludeList"))
|
||||||
|
If Not IsDBNull(dr("Parameter")) Then oGame.Parameter = CStr(dr("Parameter"))
|
||||||
oGame.Tags = mgrGameTags.GetTagsByGameForExport(sID)
|
oGame.Tags = mgrGameTags.GetTagsByGameForExport(sID)
|
||||||
oList.Add(oGame)
|
oList.Add(oGame)
|
||||||
Next
|
Next
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ Public Class mgrPath
|
|||||||
Dim sDefaultFolder As String = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
|
Dim sDefaultFolder As String = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
|
||||||
Dim sNewPath As String
|
Dim sNewPath As String
|
||||||
|
|
||||||
sNewPath = mgrCommon.OpenFolderBrowser(mgrPath_ChoosePath, sDefaultFolder, False)
|
sNewPath = mgrCommon.OpenFolderBrowser("Manual_Game_Location", mgrPath_ChoosePath, sDefaultFolder, False)
|
||||||
|
|
||||||
Return sNewPath
|
Return sNewPath
|
||||||
End Function
|
End Function
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
Imports System.Diagnostics
|
Imports System.IO
|
||||||
Imports System.IO
|
Imports System.Management
|
||||||
Imports System.Threading
|
|
||||||
|
|
||||||
Public Class mgrProcesses
|
Public Class mgrProcesses
|
||||||
|
|
||||||
@@ -11,6 +10,7 @@ Public Class mgrProcesses
|
|||||||
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 sFullCommand As String = String.Empty
|
||||||
|
|
||||||
Property FoundProcess As Process
|
Property FoundProcess As Process
|
||||||
Get
|
Get
|
||||||
@@ -72,17 +72,63 @@ Public Class mgrProcesses
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private Sub VerifyDuplicate(oGame As clsGame, hshScanList As Hashtable)
|
Property FullCommand As String
|
||||||
|
Get
|
||||||
|
Return sFullCommand
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
sFullCommand = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private Function HandleDuplicates(hshScanList As Hashtable) As Boolean
|
||||||
Dim sProcess As String
|
Dim sProcess As String
|
||||||
bDuplicates = True
|
bDuplicates = True
|
||||||
oDuplicateGames.Clear()
|
oDuplicateGames.Clear()
|
||||||
|
|
||||||
For Each o As clsGame In hshScanList.Values
|
For Each o As clsGame In hshScanList.Values
|
||||||
sProcess = o.ProcessName.Split(":")(0)
|
sProcess = o.ProcessName.Split(":")(0)
|
||||||
|
|
||||||
If o.Duplicate = True And sProcess = oGame.TrueProcess Then
|
If o.Duplicate = True And sProcess = oGame.TrueProcess Then
|
||||||
oDuplicateGames.Add(o.ShallowCopy)
|
If o.Parameter <> String.Empty And FullCommand.Contains(o.Parameter) Then
|
||||||
|
oGame = o.ShallowCopy
|
||||||
|
Return True
|
||||||
|
ElseIf o.Parameter = String.Empty Then
|
||||||
|
oDuplicateGames.Add(o.ShallowCopy)
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
If oDuplicateGames.Count = 1 Then
|
||||||
|
oGame = DirectCast(oDuplicateGames(0), clsGame).ShallowCopy
|
||||||
|
Return True
|
||||||
|
End If
|
||||||
|
|
||||||
|
Return False
|
||||||
|
End Function
|
||||||
|
|
||||||
|
'This function will only work correctly on Windows
|
||||||
|
Private Sub GetWindowsCommand(ByVal prs As Process)
|
||||||
|
FullCommand = String.Empty
|
||||||
|
Try
|
||||||
|
Using searcher As New ManagementObjectSearcher("SELECT CommandLine FROM Win32_Process WHERE ProcessId = " + prs.Id.ToString)
|
||||||
|
For Each o As ManagementObject In searcher.Get()
|
||||||
|
FullCommand &= o("CommandLine") & " "
|
||||||
|
Next
|
||||||
|
End Using
|
||||||
|
Catch ex As Exception
|
||||||
|
'Do Nothing
|
||||||
|
End Try
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'This function will only work correctly on Unix
|
||||||
|
Private Sub GetUnixCommand(ByVal prs As Process)
|
||||||
|
FullCommand = String.Empty
|
||||||
|
Try
|
||||||
|
FullCommand = File.ReadAllText("/proc/" & prs.Id.ToString() & "/cmdline").Replace(vbNullChar, " ")
|
||||||
|
Catch ex As Exception
|
||||||
|
'Do Nothing
|
||||||
|
End Try
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
'This function will only work correctly on Unix
|
'This function will only work correctly on Unix
|
||||||
@@ -99,19 +145,18 @@ Public Class mgrProcesses
|
|||||||
'This function will only work correctly on Unix
|
'This function will only work correctly on Unix
|
||||||
Private Function GetUnixSymLinkDirectory(ByVal prs As Process) As String
|
Private Function GetUnixSymLinkDirectory(ByVal prs As Process) As String
|
||||||
Dim prsls As Process
|
Dim prsls As Process
|
||||||
Dim slsinfo As String()
|
Dim slsinfo As String
|
||||||
|
|
||||||
'This is the best way I can think of to determine the end point of a symlink without doing even more crazy shit
|
|
||||||
Try
|
Try
|
||||||
prsls = New Process
|
prsls = New Process
|
||||||
prsls.StartInfo.FileName = "/bin/bash"
|
prsls.StartInfo.FileName = "/bin/readlink"
|
||||||
prsls.StartInfo.Arguments = "-c ""ls -l /proc/" & prs.Id.ToString & " | grep cwd"""
|
prsls.StartInfo.Arguments = "-f /proc/" & prs.Id.ToString & "/cwd"
|
||||||
prsls.StartInfo.UseShellExecute = False
|
prsls.StartInfo.UseShellExecute = False
|
||||||
prsls.StartInfo.RedirectStandardOutput = True
|
prsls.StartInfo.RedirectStandardOutput = True
|
||||||
prsls.StartInfo.CreateNoWindow = True
|
prsls.StartInfo.CreateNoWindow = True
|
||||||
prsls.Start()
|
prsls.Start()
|
||||||
slsinfo = prsls.StandardOutput.ReadToEnd().Split(">")
|
slsinfo = prsls.StandardOutput.ReadToEnd()
|
||||||
Return slsinfo(slsinfo.Length - 1).Trim
|
Return slsinfo.Trim()
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
Return String.Empty
|
Return String.Empty
|
||||||
End Try
|
End Try
|
||||||
@@ -153,13 +198,26 @@ Public Class mgrProcesses
|
|||||||
prsFoundProcess = prsCurrent
|
prsFoundProcess = prsCurrent
|
||||||
oGame = DirectCast(hshScanList.Item(sProcessCheck), clsGame).ShallowCopy
|
oGame = DirectCast(hshScanList.Item(sProcessCheck), clsGame).ShallowCopy
|
||||||
|
|
||||||
|
If mgrCommon.IsUnix Then
|
||||||
|
GetUnixCommand(prsCurrent)
|
||||||
|
Else
|
||||||
|
GetWindowsCommand(prsCurrent)
|
||||||
|
End If
|
||||||
|
|
||||||
If oGame.Duplicate = True Then
|
If oGame.Duplicate = True Then
|
||||||
VerifyDuplicate(oGame, hshScanList)
|
If HandleDuplicates(hshScanList) Then
|
||||||
|
bDuplicates = False
|
||||||
|
oDuplicateGames.Clear()
|
||||||
|
End If
|
||||||
Else
|
Else
|
||||||
bDuplicates = False
|
bDuplicates = False
|
||||||
oDuplicateGames.Clear()
|
oDuplicateGames.Clear()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If Duplicate And DuplicateList.Count = 0 Then Return False
|
||||||
|
|
||||||
|
If oGame.Parameter <> String.Empty And Not Duplicate And Not FullCommand.Contains(oGame.Parameter) Then Return False
|
||||||
|
|
||||||
If Not oGame.AbsolutePath Or oGame.Duplicate Then
|
If Not oGame.AbsolutePath Or oGame.Duplicate Then
|
||||||
Try
|
Try
|
||||||
If Not bWineProcess Then
|
If Not bWineProcess Then
|
||||||
|
|||||||
+20
-26
@@ -96,8 +96,6 @@ Public Class mgrRestore
|
|||||||
If bLocal And bRemote Then
|
If bLocal And bRemote Then
|
||||||
'Compare
|
'Compare
|
||||||
If oRemoteItem.DateUpdated > oLocalItem.DateUpdated Then
|
If oRemoteItem.DateUpdated > oLocalItem.DateUpdated Then
|
||||||
oRemoteItem.LastDateUpdated = oLocalItem.DateUpdated
|
|
||||||
oRemoteItem.LastUpdatedBy = oLocalItem.UpdatedBy
|
|
||||||
Return True
|
Return True
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -125,18 +123,10 @@ Public Class mgrRestore
|
|||||||
oLocalItem = DirectCast(slLocalManifest(oItem.Name), clsBackup)
|
oLocalItem = DirectCast(slLocalManifest(oItem.Name), clsBackup)
|
||||||
|
|
||||||
If oItem.DateUpdated > oLocalItem.DateUpdated Then
|
If oItem.DateUpdated > oLocalItem.DateUpdated Then
|
||||||
oLocalItem.FileName = oItem.FileName
|
slRestoreItems.Add(oItem.Name, oItem)
|
||||||
oLocalItem.LastDateUpdated = oItem.DateUpdated
|
|
||||||
oLocalItem.LastUpdatedBy = oItem.UpdatedBy
|
|
||||||
slRestoreItems.Add(oLocalItem.Name, oLocalItem)
|
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
oLocalItem = oItem
|
slRestoreItems.Add(oItem.Name, oItem)
|
||||||
oLocalItem.LastDateUpdated = oItem.DateUpdated
|
|
||||||
oLocalItem.LastUpdatedBy = oItem.UpdatedBy
|
|
||||||
oLocalItem.DateUpdated = Nothing
|
|
||||||
oLocalItem.UpdatedBy = Nothing
|
|
||||||
slRestoreItems.Add(oLocalItem.Name, oLocalItem)
|
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
@@ -161,7 +151,7 @@ Public Class mgrRestore
|
|||||||
Return slRemovedItems
|
Return slRemovedItems
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function CheckRestorePrereq(ByVal oBackupInfo As clsBackup) As Boolean
|
Public Function CheckRestorePrereq(ByVal oBackupInfo As clsBackup, ByVal bCleanFolder As Boolean) As Boolean
|
||||||
Dim sHash As String
|
Dim sHash As String
|
||||||
Dim sExtractPath As String
|
Dim sExtractPath As String
|
||||||
Dim sBackupFile As String = oSettings.BackupFolder & Path.DirectorySeparatorChar & oBackupInfo.FileName
|
Dim sBackupFile As String = oSettings.BackupFolder & Path.DirectorySeparatorChar & oBackupInfo.FileName
|
||||||
@@ -185,26 +175,30 @@ Public Class mgrRestore
|
|||||||
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrRestore_ErrorNoPath, sExtractPath), False, ToolTipIcon.Error, True)
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrRestore_ErrorNoPath, sExtractPath), False, ToolTipIcon.Error, True)
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
Else
|
||||||
|
If bCleanFolder Then
|
||||||
|
mgrCommon.DeleteDirectory(sExtractPath, True)
|
||||||
|
Directory.CreateDirectory(sExtractPath)
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'Check file integrity
|
'Check file integrity
|
||||||
If oSettings.CheckSum Then
|
If oBackupInfo.CheckSum <> String.Empty Then
|
||||||
If oBackupInfo.CheckSum <> String.Empty Then
|
sHash = mgrHash.Generate_SHA256_Hash(sBackupFile)
|
||||||
sHash = mgrHash.Generate_SHA256_Hash(sBackupFile)
|
If sHash <> oBackupInfo.CheckSum Then
|
||||||
If sHash <> oBackupInfo.CheckSum Then
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrRestore_ErrorFailedCheck, oBackupInfo.Name), False, ToolTipIcon.Info, True)
|
||||||
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrRestore_ErrorFailedCheck, oBackupInfo.Name), False, ToolTipIcon.Info, True)
|
If mgrCommon.ShowMessage(mgrRestore_ConfirmFailedCheck, oBackupInfo.Name, MsgBoxStyle.YesNo) = MsgBoxResult.No Then
|
||||||
If mgrCommon.ShowMessage(mgrRestore_ConfirmFailedCheck, oBackupInfo.Name, MsgBoxStyle.YesNo) = MsgBoxResult.No Then
|
RaiseEvent UpdateLog(mgrRestore_ErrorCheckAbort, False, ToolTipIcon.Info, True)
|
||||||
RaiseEvent UpdateLog(mgrRestore_ErrorCheckAbort, False, ToolTipIcon.Info, True)
|
Return False
|
||||||
Return False
|
|
||||||
End If
|
|
||||||
Else
|
|
||||||
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrRestore_Verified, oBackupInfo.Name), False, ToolTipIcon.Info, True)
|
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrRestore_NoVerify, oBackupInfo.Name), False, ToolTipIcon.Info, True)
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrRestore_Verified, oBackupInfo.Name), False, ToolTipIcon.Info, True)
|
||||||
End If
|
End If
|
||||||
|
Else
|
||||||
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrRestore_NoVerify, oBackupInfo.Name), False, ToolTipIcon.Info, True)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
@@ -282,7 +276,7 @@ Public Class mgrRestore
|
|||||||
RaiseEvent SetLastAction(mgrCommon.FormatString(mgrRestore_ActionComplete, oBackupInfo.CroppedName))
|
RaiseEvent SetLastAction(mgrCommon.FormatString(mgrRestore_ActionComplete, oBackupInfo.CroppedName))
|
||||||
Else
|
Else
|
||||||
RaiseEvent SetLastAction(mgrCommon.FormatString(mgrRestore_ActionFailed, oBackupInfo.CroppedName))
|
RaiseEvent SetLastAction(mgrCommon.FormatString(mgrRestore_ActionFailed, oBackupInfo.CroppedName))
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -72,15 +72,18 @@ Public Class mgrSQLite
|
|||||||
'Add Tables (Settings)
|
'Add Tables (Settings)
|
||||||
sSql = "CREATE TABLE settings (SettingsID INTEGER NOT NULL PRIMARY KEY, MonitorOnStartup BOOLEAN NOT NULL, StartToTray BOOLEAN NOT NULL, ShowDetectionToolTips BOOLEAN NOT NULL, " &
|
sSql = "CREATE TABLE settings (SettingsID INTEGER NOT NULL PRIMARY KEY, MonitorOnStartup BOOLEAN NOT NULL, StartToTray BOOLEAN NOT NULL, ShowDetectionToolTips BOOLEAN NOT NULL, " &
|
||||||
"DisableConfirmation BOOLEAN NOT NULL, CreateSubFolder BOOLEAN NOT NULL, ShowOverwriteWarning BOOLEAN NOT NULL, RestoreOnLaunch BOOLEAN NOT NULL, " &
|
"DisableConfirmation BOOLEAN NOT NULL, CreateSubFolder BOOLEAN NOT NULL, ShowOverwriteWarning BOOLEAN NOT NULL, RestoreOnLaunch BOOLEAN NOT NULL, " &
|
||||||
"BackupFolder TEXT NOT NULL, Sync BOOLEAN NOT NULL, CheckSum BOOLEAN NOT NULL, StartWithWindows BOOLEAN NOT NULL, TimeTracking BOOLEAN NOT NULL, " &
|
"BackupFolder TEXT NOT NULL, Sync BOOLEAN NOT NULL, StartWithWindows BOOLEAN NOT NULL, TimeTracking BOOLEAN NOT NULL, " &
|
||||||
"SupressBackup BOOLEAN NOT NULL, SupressBackupThreshold INTEGER NOT NULL, CompressionLevel INTEGER NOT NULL, Custom7zArguments TEXT, " &
|
"SupressBackup BOOLEAN NOT NULL, SupressBackupThreshold INTEGER NOT NULL, CompressionLevel INTEGER NOT NULL, Custom7zArguments TEXT, " &
|
||||||
"Custom7zLocation TEXT, SyncFields INTEGER NOT NULL, AutoSaveLog BOOLEAN NOT NULL);"
|
"Custom7zLocation TEXT, SyncFields INTEGER NOT NULL, AutoSaveLog BOOLEAN NOT NULL, AutoRestore BOOLEAN NOT NULL, AutoMark BOOLEAN NOT NULL);"
|
||||||
|
|
||||||
|
'Add Tables (SavedPath)
|
||||||
|
sSql &= "CREATE TABLE savedpath (PathName TEXT NOT NULL PRIMARY KEY, Path TEXT NOT NULL);"
|
||||||
|
|
||||||
'Add Tables (Monitor List)
|
'Add Tables (Monitor List)
|
||||||
sSql &= "CREATE TABLE monitorlist (MonitorID TEXT NOT NULL UNIQUE, Name TEXT NOT NULL, Process TEXT NOT NULL, Path TEXT, " &
|
sSql &= "CREATE TABLE monitorlist (MonitorID TEXT NOT NULL UNIQUE, Name TEXT NOT NULL, Process TEXT NOT NULL, Path TEXT, " &
|
||||||
"AbsolutePath BOOLEAN NOT NULL, FolderSave BOOLEAN NOT NULL, FileType TEXT, TimeStamp BOOLEAN NOT NULL, ExcludeList TEXT NOT NULL, " &
|
"AbsolutePath BOOLEAN NOT NULL, FolderSave BOOLEAN NOT NULL, FileType TEXT, TimeStamp BOOLEAN NOT NULL, ExcludeList TEXT NOT NULL, " &
|
||||||
"ProcessPath TEXT, Icon TEXT, Hours REAL, Version TEXT, Company TEXT, Enabled BOOLEAN NOT NULL, MonitorOnly BOOLEAN NOT NULL, " &
|
"ProcessPath TEXT, Icon TEXT, Hours REAL, Version TEXT, Company TEXT, Enabled BOOLEAN NOT NULL, MonitorOnly BOOLEAN NOT NULL, " &
|
||||||
"BackupLimit INTEGER NOT NULL, PRIMARY KEY(Name, Process));"
|
"BackupLimit INTEGER NOT NULL, CleanFolder BOOLEAN NOT NULL, Parameter TEXT, PRIMARY KEY(Name, Process));"
|
||||||
|
|
||||||
'Add Tables (Tags)
|
'Add Tables (Tags)
|
||||||
sSql &= "CREATE TABLE tags (TagID TEXT NOT NULL UNIQUE, Name TEXT NOT NULL PRIMARY KEY); "
|
sSql &= "CREATE TABLE tags (TagID TEXT NOT NULL UNIQUE, Name TEXT NOT NULL PRIMARY KEY); "
|
||||||
@@ -117,7 +120,7 @@ Public Class mgrSQLite
|
|||||||
sSql = "CREATE TABLE monitorlist (MonitorID TEXT NOT NULL UNIQUE, Name TEXT NOT NULL, Process TEXT NOT NULL, Path TEXT, " &
|
sSql = "CREATE TABLE monitorlist (MonitorID TEXT NOT NULL UNIQUE, Name TEXT NOT NULL, Process TEXT NOT NULL, Path TEXT, " &
|
||||||
"AbsolutePath BOOLEAN NOT NULL, FolderSave BOOLEAN NOT NULL, FileType TEXT, TimeStamp BOOLEAN NOT NULL, ExcludeList TEXT NOT NULL, " &
|
"AbsolutePath BOOLEAN NOT NULL, FolderSave BOOLEAN NOT NULL, FileType TEXT, TimeStamp BOOLEAN NOT NULL, ExcludeList TEXT NOT NULL, " &
|
||||||
"ProcessPath TEXT, Icon TEXT, Hours REAL, Version TEXT, Company TEXT, Enabled BOOLEAN NOT NULL, MonitorOnly BOOLEAN NOT NULL, " &
|
"ProcessPath TEXT, Icon TEXT, Hours REAL, Version TEXT, Company TEXT, Enabled BOOLEAN NOT NULL, MonitorOnly BOOLEAN NOT NULL, " &
|
||||||
"BackupLimit INTEGER NOT NULL, PRIMARY KEY(Name, Process));"
|
"BackupLimit INTEGER NOT NULL, CleanFolder BOOLEAN NOT NULL, Parameter TEXT, PRIMARY KEY(Name, Process));"
|
||||||
|
|
||||||
'Add Tables (Remote Manifest)
|
'Add Tables (Remote Manifest)
|
||||||
sSql &= "CREATE TABLE manifest (ManifestID TEXT NOT NULL PRIMARY KEY, Name TEXT NOT NULL, FileName TEXT NOT NULL, RestorePath TEXT NOT NULL, " &
|
sSql &= "CREATE TABLE manifest (ManifestID TEXT NOT NULL PRIMARY KEY, Name TEXT NOT NULL, FileName TEXT NOT NULL, RestorePath TEXT NOT NULL, " &
|
||||||
@@ -600,6 +603,74 @@ Public Class mgrSQLite
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
'1.01 Upgrade
|
||||||
|
If GetDatabaseVersion() < 101 Then
|
||||||
|
If eDatabase = Database.Local Then
|
||||||
|
'Backup DB before starting
|
||||||
|
BackupDB("v98")
|
||||||
|
|
||||||
|
'Remove checksum field
|
||||||
|
sSQL = "CREATE TABLE settings_new (SettingsID INTEGER NOT NULL PRIMARY KEY, MonitorOnStartup BOOLEAN NOT NULL, StartToTray BOOLEAN NOT NULL, ShowDetectionToolTips BOOLEAN NOT NULL, " &
|
||||||
|
"DisableConfirmation BOOLEAN NOT NULL, CreateSubFolder BOOLEAN NOT NULL, ShowOverwriteWarning BOOLEAN NOT NULL, RestoreOnLaunch BOOLEAN NOT NULL, " &
|
||||||
|
"BackupFolder TEXT NOT NULL, Sync BOOLEAN NOT NULL, StartWithWindows BOOLEAN NOT NULL, TimeTracking BOOLEAN NOT NULL, " &
|
||||||
|
"SupressBackup BOOLEAN NOT NULL, SupressBackupThreshold INTEGER NOT NULL, CompressionLevel INTEGER NOT NULL, Custom7zArguments TEXT, " &
|
||||||
|
"Custom7zLocation TEXT, SyncFields INTEGER NOT NULL, AutoSaveLog BOOLEAN NOT NULL);"
|
||||||
|
sSQL &= "INSERT INTO settings_new (SettingsID, MonitorOnStartup, StartToTray, ShowDetectionToolTips, DisableConfirmation, CreateSubFolder, " &
|
||||||
|
"ShowOverwriteWarning, RestoreOnLaunch, BackupFolder, Sync, StartWithWindows, TimeTracking, SupressBackup, SupressBackupThreshold, " &
|
||||||
|
"CompressionLevel, Custom7zArguments, Custom7zLocation, SyncFields, AutoSaveLog) " &
|
||||||
|
"SELECT SettingsID, MonitorOnStartup, StartToTray, ShowDetectionToolTips, DisableConfirmation, CreateSubFolder, " &
|
||||||
|
"ShowOverwriteWarning, RestoreOnLaunch, BackupFolder, Sync, StartWithWindows, TimeTracking, SupressBackup, SupressBackupThreshold, " &
|
||||||
|
"CompressionLevel, Custom7zArguments, Custom7zLocation, SyncFields, AutoSaveLog FROM settings;" &
|
||||||
|
"DROP TABLE settings; ALTER TABLE settings_new RENAME TO settings;"
|
||||||
|
'Add new field(s)
|
||||||
|
sSQL &= "ALTER TABLE monitorlist ADD COLUMN CleanFolder BOOLEAN NOT NULL DEFAULT 0;"
|
||||||
|
sSQL &= "ALTER TABLE settings ADD COLUMN AutoRestore BOOLEAN NOT NULL DEFAULT 0;"
|
||||||
|
sSQL &= "ALTER TABLE settings ADD COLUMN AutoMark BOOLEAN NOT NULL DEFAULT 0;"
|
||||||
|
sSQL &= "PRAGMA user_version=101"
|
||||||
|
|
||||||
|
RunParamQuery(sSQL, New Hashtable)
|
||||||
|
End If
|
||||||
|
If eDatabase = Database.Remote Then
|
||||||
|
'Backup DB before starting
|
||||||
|
BackupDB("v98")
|
||||||
|
|
||||||
|
'Add new field(s)
|
||||||
|
sSQL = "ALTER TABLE monitorlist ADD COLUMN CleanFolder BOOLEAN NOT NULL DEFAULT 0;"
|
||||||
|
sSQL &= "PRAGMA user_version=101"
|
||||||
|
|
||||||
|
RunParamQuery(sSQL, New Hashtable)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
'1.02 Upgrade
|
||||||
|
If GetDatabaseVersion() < 102 Then
|
||||||
|
If eDatabase = Database.Local Then
|
||||||
|
'Backup DB before starting
|
||||||
|
BackupDB("v101")
|
||||||
|
|
||||||
|
'Add Table (SavedPath)
|
||||||
|
sSQL = "CREATE TABLE savedpath (PathName TEXT NOT NULL PRIMARY KEY, Path TEXT NOT NULL);"
|
||||||
|
|
||||||
|
'Add new field(s)
|
||||||
|
sSQL &= "ALTER TABLE monitorlist ADD COLUMN Parameter TEXT;"
|
||||||
|
|
||||||
|
sSQL &= "PRAGMA user_version=102"
|
||||||
|
|
||||||
|
RunParamQuery(sSQL, New Hashtable)
|
||||||
|
End If
|
||||||
|
If eDatabase = Database.Remote Then
|
||||||
|
'Backup DB before starting
|
||||||
|
BackupDB("v101")
|
||||||
|
|
||||||
|
'Add new field(s)
|
||||||
|
sSQL = "ALTER TABLE monitorlist ADD COLUMN Parameter TEXT;"
|
||||||
|
|
||||||
|
sSQL &= "PRAGMA user_version=102"
|
||||||
|
|
||||||
|
RunParamQuery(sSQL, New Hashtable)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Function GetDBSize() As Long
|
Public Function GetDBSize() As Long
|
||||||
@@ -607,6 +678,10 @@ Public Class mgrSQLite
|
|||||||
Return Math.Round(oFileInfo.Length / 1024, 2)
|
Return Math.Round(oFileInfo.Length / 1024, 2)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Public Function ReportVersion() As String
|
||||||
|
Return SqliteConnection.SQLiteVersion
|
||||||
|
End Function
|
||||||
|
|
||||||
Public Sub CompactDatabase()
|
Public Sub CompactDatabase()
|
||||||
Dim sSQL As String
|
Dim sSQL As String
|
||||||
Dim command As SQLiteCommand
|
Dim command As SQLiteCommand
|
||||||
|
|||||||
@@ -0,0 +1,54 @@
|
|||||||
|
Public Class mgrSavedPath
|
||||||
|
|
||||||
|
|
||||||
|
Private Shared Function MapToObject(ByVal dr As DataRow) As clsSavedPath
|
||||||
|
Dim oSavedPath As New clsSavedPath
|
||||||
|
|
||||||
|
oSavedPath.PathName = CStr(dr("PathName"))
|
||||||
|
oSavedPath.Path = CStr(dr("Path"))
|
||||||
|
|
||||||
|
Return oSavedPath
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Private Shared Function SetCoreParameters(ByVal oSavedPath As clsSavedPath) As Hashtable
|
||||||
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
|
hshParams.Add("PathName", oSavedPath.PathName)
|
||||||
|
hshParams.Add("Path", oSavedPath.Path)
|
||||||
|
|
||||||
|
Return hshParams
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function GetPathByName(ByVal sPathName As String) As clsSavedPath
|
||||||
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
|
Dim oData As DataSet
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshParams As New Hashtable
|
||||||
|
Dim oSavedPath As New clsSavedPath
|
||||||
|
|
||||||
|
sSQL = "SELECT PathName, Path from savedpath WHERE PathName=@PathName;"
|
||||||
|
|
||||||
|
hshParams.Add("PathName", sPathName)
|
||||||
|
|
||||||
|
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
||||||
|
|
||||||
|
For Each dr As DataRow In oData.Tables(0).Rows
|
||||||
|
oSavedPath = MapToObject(dr)
|
||||||
|
Next
|
||||||
|
|
||||||
|
Return oSavedPath
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Sub AddUpdatePath(ByVal oSavedPath As clsSavedPath)
|
||||||
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshParams As Hashtable
|
||||||
|
|
||||||
|
sSQL = "INSERT OR REPLACE INTO savedpath (PathName, Path) VALUES (@PathName, @Path);"
|
||||||
|
|
||||||
|
hshParams = SetCoreParameters(oSavedPath)
|
||||||
|
|
||||||
|
oDatabase.RunParamQuery(sSQL, hshParams)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
End Class
|
||||||
+26
-14
@@ -9,8 +9,9 @@ Public Class mgrSettings
|
|||||||
Private bCreateSubFolder As Boolean = False
|
Private bCreateSubFolder As Boolean = False
|
||||||
Private bShowOverwriteWarning As Boolean = True
|
Private bShowOverwriteWarning As Boolean = True
|
||||||
Private bRestoreOnLaunch As Boolean = False
|
Private bRestoreOnLaunch As Boolean = False
|
||||||
|
Private bAutoRestore As Boolean = False
|
||||||
|
Private bAutoMark As Boolean = False
|
||||||
Private bSync As Boolean = True
|
Private bSync As Boolean = True
|
||||||
Private bCheckSum As Boolean = True
|
|
||||||
Private bTimeTracking As Boolean = True
|
Private bTimeTracking As Boolean = True
|
||||||
Private bSupressBackup As Boolean = False
|
Private bSupressBackup As Boolean = False
|
||||||
Private iSupressBackupThreshold As Integer = 10
|
Private iSupressBackupThreshold As Integer = 10
|
||||||
@@ -93,6 +94,24 @@ Public Class mgrSettings
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Property AutoRestore As Boolean
|
||||||
|
Get
|
||||||
|
Return bAutoRestore
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
bAutoRestore = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Property AutoMark As Boolean
|
||||||
|
Get
|
||||||
|
Return bAutoMark
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
bAutoMark = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
Property Sync As Boolean
|
Property Sync As Boolean
|
||||||
Get
|
Get
|
||||||
Return bSync
|
Return bSync
|
||||||
@@ -102,15 +121,6 @@ Public Class mgrSettings
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Property CheckSum As Boolean
|
|
||||||
Get
|
|
||||||
Return bCheckSum
|
|
||||||
End Get
|
|
||||||
Set(value As Boolean)
|
|
||||||
bCheckSum = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Property TimeTracking As Boolean
|
Property TimeTracking As Boolean
|
||||||
Get
|
Get
|
||||||
Return bTimeTracking
|
Return bTimeTracking
|
||||||
@@ -249,9 +259,9 @@ Public Class mgrSettings
|
|||||||
oDatabase.RunParamQuery(sSQL, New Hashtable)
|
oDatabase.RunParamQuery(sSQL, New Hashtable)
|
||||||
|
|
||||||
sSQL = "INSERT INTO settings VALUES (1, @MonitorOnStartup, @StartToTray, @ShowDetectionToolTips, @DisableConfirmation, "
|
sSQL = "INSERT INTO settings VALUES (1, @MonitorOnStartup, @StartToTray, @ShowDetectionToolTips, @DisableConfirmation, "
|
||||||
sSQL &= "@CreateSubFolder, @ShowOverwriteWarning, @RestoreOnLaunch, @BackupFolder, @Sync, @CheckSum, @StartWithWindows, "
|
sSQL &= "@CreateSubFolder, @ShowOverwriteWarning, @RestoreOnLaunch, @BackupFolder, @Sync, @StartWithWindows, "
|
||||||
sSQL &= "@TimeTracking, @SupressBackup, @SupressBackupThreshold, @CompressionLevel, @Custom7zArguments, @Custom7zLocation, "
|
sSQL &= "@TimeTracking, @SupressBackup, @SupressBackupThreshold, @CompressionLevel, @Custom7zArguments, @Custom7zLocation, "
|
||||||
sSQL &= "@SyncFields,@AutoSaveLog)"
|
sSQL &= "@SyncFields, @AutoSaveLog, @AutoRestore, @AutoMark)"
|
||||||
|
|
||||||
hshParams.Add("MonitorOnStartup", MonitorOnStartup)
|
hshParams.Add("MonitorOnStartup", MonitorOnStartup)
|
||||||
hshParams.Add("StartToTray", StartToTray)
|
hshParams.Add("StartToTray", StartToTray)
|
||||||
@@ -262,7 +272,6 @@ Public Class mgrSettings
|
|||||||
hshParams.Add("RestoreOnLaunch", RestoreOnLaunch)
|
hshParams.Add("RestoreOnLaunch", RestoreOnLaunch)
|
||||||
hshParams.Add("BackupFolder", BackupFolder)
|
hshParams.Add("BackupFolder", BackupFolder)
|
||||||
hshParams.Add("Sync", Sync)
|
hshParams.Add("Sync", Sync)
|
||||||
hshParams.Add("CheckSum", CheckSum)
|
|
||||||
hshParams.Add("StartWithWindows", StartWithWindows)
|
hshParams.Add("StartWithWindows", StartWithWindows)
|
||||||
hshParams.Add("TimeTracking", TimeTracking)
|
hshParams.Add("TimeTracking", TimeTracking)
|
||||||
hshParams.Add("SupressBackup", SupressBackup)
|
hshParams.Add("SupressBackup", SupressBackup)
|
||||||
@@ -272,6 +281,8 @@ Public Class mgrSettings
|
|||||||
hshParams.Add("Custom7zLocation", Custom7zLocation)
|
hshParams.Add("Custom7zLocation", Custom7zLocation)
|
||||||
hshParams.Add("SyncFields", SyncFields)
|
hshParams.Add("SyncFields", SyncFields)
|
||||||
hshParams.Add("AutoSaveLog", AutoSaveLog)
|
hshParams.Add("AutoSaveLog", AutoSaveLog)
|
||||||
|
hshParams.Add("AutoRestore", AutoRestore)
|
||||||
|
hshParams.Add("AutoMark", AutoMark)
|
||||||
oDatabase.RunParamQuery(sSQL, hshParams)
|
oDatabase.RunParamQuery(sSQL, hshParams)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -295,7 +306,6 @@ Public Class mgrSettings
|
|||||||
RestoreOnLaunch = CBool(dr("RestoreOnLaunch"))
|
RestoreOnLaunch = CBool(dr("RestoreOnLaunch"))
|
||||||
BackupFolder = CStr(dr("BackupFolder"))
|
BackupFolder = CStr(dr("BackupFolder"))
|
||||||
Sync = CBool(dr("Sync"))
|
Sync = CBool(dr("Sync"))
|
||||||
CheckSum = CBool(dr("CheckSum"))
|
|
||||||
StartWithWindows = CBool(dr("StartWithWindows"))
|
StartWithWindows = CBool(dr("StartWithWindows"))
|
||||||
TimeTracking = CBool(dr("TimeTracking"))
|
TimeTracking = CBool(dr("TimeTracking"))
|
||||||
SupressBackup = CBool(dr("SupressBackup"))
|
SupressBackup = CBool(dr("SupressBackup"))
|
||||||
@@ -305,6 +315,8 @@ Public Class mgrSettings
|
|||||||
If Not IsDBNull(dr("Custom7zLocation")) Then Custom7zLocation = CStr(dr("Custom7zLocation"))
|
If Not IsDBNull(dr("Custom7zLocation")) Then Custom7zLocation = CStr(dr("Custom7zLocation"))
|
||||||
SyncFields = CInt(dr("SyncFields"))
|
SyncFields = CInt(dr("SyncFields"))
|
||||||
AutoSaveLog = CBool(dr("AutoSaveLog"))
|
AutoSaveLog = CBool(dr("AutoSaveLog"))
|
||||||
|
AutoRestore = CBool(dr("AutoRestore"))
|
||||||
|
AutoMark = CBool(dr("AutoMark"))
|
||||||
Next
|
Next
|
||||||
|
|
||||||
oDatabase.Disconnect()
|
oDatabase.Disconnect()
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ Public Class mgrXML
|
|||||||
oGame.FolderSave = g.FolderSave
|
oGame.FolderSave = g.FolderSave
|
||||||
oGame.FileType = g.FileType
|
oGame.FileType = g.FileType
|
||||||
oGame.ExcludeList = g.ExcludeList
|
oGame.ExcludeList = g.ExcludeList
|
||||||
|
oGame.Parameter = g.Parameter
|
||||||
For Each t As Tag In g.Tags
|
For Each t As Tag In g.Tags
|
||||||
oGame.ImportTags.Add(t)
|
oGame.ImportTags.Add(t)
|
||||||
Next
|
Next
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ Imports System.Runtime.InteropServices
|
|||||||
<Assembly: AssemblyDescription("Game Backup Monitor")>
|
<Assembly: AssemblyDescription("Game Backup Monitor")>
|
||||||
<Assembly: AssemblyCompany("Michael J. Seiferling")>
|
<Assembly: AssemblyCompany("Michael J. Seiferling")>
|
||||||
<Assembly: AssemblyProduct("Game Backup Monitor")>
|
<Assembly: AssemblyProduct("Game Backup Monitor")>
|
||||||
<Assembly: AssemblyCopyright("Copyright © 2016 Michael J. Seiferling")>
|
<Assembly: AssemblyCopyright("Copyright © 2017 Michael J. Seiferling")>
|
||||||
<Assembly: AssemblyTrademark("")>
|
<Assembly: AssemblyTrademark("")>
|
||||||
|
|
||||||
<Assembly: ComVisible(False)>
|
<Assembly: ComVisible(False)>
|
||||||
@@ -33,7 +33,7 @@ Imports System.Runtime.InteropServices
|
|||||||
' by using the '*' as shown below:
|
' by using the '*' as shown below:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("1.0.0.*")>
|
<Assembly: AssemblyVersion("1.0.2.*")>
|
||||||
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
<Assembly: AssemblyFileVersion("1.0.2.0")>
|
||||||
|
|
||||||
<Assembly: NeutralResourcesLanguageAttribute("en")>
|
<Assembly: NeutralResourcesLanguageAttribute("en")>
|
||||||
Generated
+235
-37
@@ -96,24 +96,6 @@ Namespace My.Resources
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
|
||||||
''' Looks up a localized string similar to [PARAM] KB.
|
|
||||||
'''</summary>
|
|
||||||
Friend ReadOnly Property App_KB() As String
|
|
||||||
Get
|
|
||||||
Return ResourceManager.GetString("App_KB", resourceCulture)
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
'''<summary>
|
|
||||||
''' Looks up a localized string similar to [PARAM] MB.
|
|
||||||
'''</summary>
|
|
||||||
Friend ReadOnly Property App_MB() As String
|
|
||||||
Get
|
|
||||||
Return ResourceManager.GetString("App_MB", resourceCulture)
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to Game Backup Monitor.
|
''' Looks up a localized string similar to Game Backup Monitor.
|
||||||
'''</summary>
|
'''</summary>
|
||||||
@@ -1293,6 +1275,15 @@ Namespace My.Resources
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to Delete folder on restore.
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property frmGameManager_chkCleanFolder() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("frmGameManager_chkCleanFolder", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to Monitor this game.
|
''' Looks up a localized string similar to Monitor this game.
|
||||||
'''</summary>
|
'''</summary>
|
||||||
@@ -1644,6 +1635,15 @@ Namespace My.Resources
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to A game with this exact process and parameter already exists..
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property frmGameManager_ErrorProcessParameterDupe() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("frmGameManager_ErrorProcessParameterDupe", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to You must enter a valid game name..
|
''' Looks up a localized string similar to You must enter a valid game name..
|
||||||
'''</summary>
|
'''</summary>
|
||||||
@@ -1851,6 +1851,15 @@ Namespace My.Resources
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to Parameter:.
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property frmGameManager_lblParameter() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("frmGameManager_lblParameter", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to Process:.
|
''' Looks up a localized string similar to Process:.
|
||||||
'''</summary>
|
'''</summary>
|
||||||
@@ -1942,7 +1951,7 @@ Namespace My.Resources
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to New Saves Pending.
|
''' Looks up a localized string similar to New Backups Pending.
|
||||||
'''</summary>
|
'''</summary>
|
||||||
Friend ReadOnly Property frmGameManager_optPendingRestores() As String
|
Friend ReadOnly Property frmGameManager_optPendingRestores() As String
|
||||||
Get
|
Get
|
||||||
@@ -2275,7 +2284,7 @@ Namespace My.Resources
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to Game Backup Monitor[BR]Version: [PARAM] ([PARAM])[BR]Build: [PARAM][BR][PARAM][BR][BR]This program comes with ABSOLUTELY NO WARRANTY.[BR]This is free software, and you are welcome to redistribute it under certain conditions.[BR][BR]See gpl-3.0.html in the program folder for details..
|
''' Looks up a localized string similar to Game Backup Monitor[BR]Version: [PARAM] ([PARAM])[BR]Build: [PARAM][BR]SQLite: [PARAM][BR][BR][PARAM][BR][BR]This program comes with ABSOLUTELY NO WARRANTY.[BR]This is free software, and you are welcome to redistribute it under certain conditions.[BR][BR]See gpl-3.0.html in the program folder for details..
|
||||||
'''</summary>
|
'''</summary>
|
||||||
Friend ReadOnly Property frmMain_About() As String
|
Friend ReadOnly Property frmMain_About() As String
|
||||||
Get
|
Get
|
||||||
@@ -2292,6 +2301,24 @@ Namespace My.Resources
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to The saved game folder for [PARAM] does not exist or could not be determined, the backup has been automatically marked as restored..
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property frmMain_AutoMark() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("frmMain_AutoMark", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to [PARAM] has multiple configurations and cannot be automatically restored..
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property frmMain_AutoRestoreFailure() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("frmMain_AutoRestoreFailure", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to Backup in Progress....
|
''' Looks up a localized string similar to Backup in Progress....
|
||||||
'''</summary>
|
'''</summary>
|
||||||
@@ -3058,7 +3085,7 @@ Namespace My.Resources
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to [PARAM] New Saves Pending.
|
''' Looks up a localized string similar to [PARAM] New Backups Pending.
|
||||||
'''</summary>
|
'''</summary>
|
||||||
Friend ReadOnly Property frmMain_NewSaveNotificationMulti() As String
|
Friend ReadOnly Property frmMain_NewSaveNotificationMulti() As String
|
||||||
Get
|
Get
|
||||||
@@ -3067,7 +3094,7 @@ Namespace My.Resources
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to [PARAM] New Save Pending.
|
''' Looks up a localized string similar to [PARAM] New Backup Pending.
|
||||||
'''</summary>
|
'''</summary>
|
||||||
Friend ReadOnly Property frmMain_NewSaveNotificationSingle() As String
|
Friend ReadOnly Property frmMain_NewSaveNotificationSingle() As String
|
||||||
Get
|
Get
|
||||||
@@ -3075,6 +3102,24 @@ Namespace My.Resources
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to The saved game folder for [PARAM] does not exist or could not be determined, this backup has been skipped..
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property frmMain_NoAutoMark() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("frmMain_NoAutoMark", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to The backup file for [PARAM] has no checksum, it cannot be automatically restored..
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property frmMain_NoCheckSum() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("frmMain_NoCheckSum", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to Game details are unavailable..
|
''' Looks up a localized string similar to Game details are unavailable..
|
||||||
'''</summary>
|
'''</summary>
|
||||||
@@ -3147,6 +3192,33 @@ Namespace My.Resources
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to [PARAM] new saved game backups are being automatically restored..
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property frmMain_RestoreNotificationMulti() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("frmMain_RestoreNotificationMulti", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to A new saved game backup for [PARAM] is being automatically restored..
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property frmMain_RestoreNotificationSingle() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("frmMain_RestoreNotificationSingle", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to The backup file for [PARAM] is not ready to restore..
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property frmMain_RestoreNotReady() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("frmMain_RestoreNotReady", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to GBM is running with Administrator privileges..
|
''' Looks up a localized string similar to GBM is running with Administrator privileges..
|
||||||
'''</summary>
|
'''</summary>
|
||||||
@@ -3345,6 +3417,24 @@ Namespace My.Resources
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to Automatically mark new backups as restored when appropriate.
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property frmSettings_chkAutoMark() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("frmSettings_chkAutoMark", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to Automatically restore new backups.
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property frmSettings_chkAutoRestore() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("frmSettings_chkAutoRestore", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to Autosave log when max length is exceeded.
|
''' Looks up a localized string similar to Autosave log when max length is exceeded.
|
||||||
'''</summary>
|
'''</summary>
|
||||||
@@ -3363,15 +3453,6 @@ Namespace My.Resources
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
|
||||||
''' Looks up a localized string similar to Verify backup files with a checksum.
|
|
||||||
'''</summary>
|
|
||||||
Friend ReadOnly Property frmSettings_chkCheckSum() As String
|
|
||||||
Get
|
|
||||||
Return ResourceManager.GetString("frmSettings_chkCheckSum", resourceCulture)
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to Create a sub-folder for each game.
|
''' Looks up a localized string similar to Create a sub-folder for each game.
|
||||||
'''</summary>
|
'''</summary>
|
||||||
@@ -3400,11 +3481,11 @@ Namespace My.Resources
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to Notify when there are new backup files to restore.
|
''' Looks up a localized string similar to Display notifications about new backups.
|
||||||
'''</summary>
|
'''</summary>
|
||||||
Friend ReadOnly Property frmSettings_chkRestoreOnLaunch() As String
|
Friend ReadOnly Property frmSettings_chkRestoreNotify() As String
|
||||||
Get
|
Get
|
||||||
Return ResourceManager.GetString("frmSettings_chkRestoreOnLaunch", resourceCulture)
|
Return ResourceManager.GetString("frmSettings_chkRestoreNotify", resourceCulture)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -3525,6 +3606,15 @@ Namespace My.Resources
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to Backup Handling.
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property frmSettings_grpBackupHandling() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("frmSettings_grpBackupHandling", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to Folders.
|
''' Looks up a localized string similar to Folders.
|
||||||
'''</summary>
|
'''</summary>
|
||||||
@@ -4366,6 +4456,33 @@ Namespace My.Resources
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to [PARAM] backup failed due to a malformed command..
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property mgrBackup_7zCommandFailure() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("mgrBackup_7zCommandFailure", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to [PARAM] backup failed due to an error..
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property mgrBackup_7zFatalError() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("mgrBackup_7zFatalError", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to [PARAM] backup completed with warnings..
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property mgrBackup_7zWarnings() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("mgrBackup_7zWarnings", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to [PARAM] backup completed..
|
''' Looks up a localized string similar to [PARAM] backup completed..
|
||||||
'''</summary>
|
'''</summary>
|
||||||
@@ -4412,11 +4529,11 @@ Namespace My.Resources
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to [PARAM] backup finished with warnings or errors..
|
''' Looks up a localized string similar to You may not have enough disk space available to perform a backup.[BR][BR]Do you want to continue anyway?.
|
||||||
'''</summary>
|
'''</summary>
|
||||||
Friend ReadOnly Property mgrBackup_BackupWarnings() As String
|
Friend ReadOnly Property mgrBackup_ConfirmDiskSpace() As String
|
||||||
Get
|
Get
|
||||||
Return ResourceManager.GetString("mgrBackup_BackupWarnings", resourceCulture)
|
Return ResourceManager.GetString("mgrBackup_ConfirmDiskSpace", resourceCulture)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -4438,6 +4555,15 @@ Namespace My.Resources
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to Backup aborted due to lack of disk space..
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property mgrBackup_ErrorDiskSpace() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("mgrBackup_ErrorDiskSpace", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to An error occured creating a file list: [PARAM].
|
''' Looks up a localized string similar to An error occured creating a file list: [PARAM].
|
||||||
'''</summary>
|
'''</summary>
|
||||||
@@ -4519,6 +4645,24 @@ Namespace My.Resources
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to Available Disk Space: [PARAM].
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property mgrCommon_AvailableDiskSpace() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("mgrCommon_AvailableDiskSpace", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to [PARAM] B.
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property mgrCommon_B() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("mgrCommon_B", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to An error has occured writing the text file.[BR][BR][PARAM].
|
''' Looks up a localized string similar to An error has occured writing the text file.[BR][BR][PARAM].
|
||||||
'''</summary>
|
'''</summary>
|
||||||
@@ -4537,6 +4681,33 @@ Namespace My.Resources
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to [PARAM] GB.
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property mgrCommon_GB() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("mgrCommon_GB", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to [PARAM] KB.
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property mgrCommon_KB() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("mgrCommon_KB", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to [PARAM] MB.
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property mgrCommon_MB() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("mgrCommon_MB", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to No.
|
''' Looks up a localized string similar to No.
|
||||||
'''</summary>
|
'''</summary>
|
||||||
@@ -4546,6 +4717,33 @@ Namespace My.Resources
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to [PARAM] PB.
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property mgrCommon_PB() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("mgrCommon_PB", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to [PARAM] Save Folder Size: [PARAM].
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property mgrCommon_SavedGameFolderSize() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("mgrCommon_SavedGameFolderSize", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to [PARAM] TB.
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property mgrCommon_TB() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("mgrCommon_TB", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to Yes.
|
''' Looks up a localized string similar to Yes.
|
||||||
'''</summary>
|
'''</summary>
|
||||||
|
|||||||
@@ -122,7 +122,7 @@
|
|||||||
<value>..\Resources\Admin.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\Admin.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmMain_About" xml:space="preserve">
|
<data name="frmMain_About" xml:space="preserve">
|
||||||
<value>Game Backup Monitor[BR]Version: [PARAM] ([PARAM])[BR]Build: [PARAM][BR][PARAM][BR][BR]This program comes with ABSOLUTELY NO WARRANTY.[BR]This is free software, and you are welcome to redistribute it under certain conditions.[BR][BR]See gpl-3.0.html in the program folder for details.</value>
|
<value>Game Backup Monitor[BR]Version: [PARAM] ([PARAM])[BR]Build: [PARAM][BR]SQLite: [PARAM][BR][BR][PARAM][BR][BR]This program comes with ABSOLUTELY NO WARRANTY.[BR]This is free software, and you are welcome to redistribute it under certain conditions.[BR][BR]See gpl-3.0.html in the program folder for details.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmMain_ManifestAreadyClean" xml:space="preserve">
|
<data name="frmMain_ManifestAreadyClean" xml:space="preserve">
|
||||||
<value>The local manifest is clean.</value>
|
<value>The local manifest is clean.</value>
|
||||||
@@ -287,10 +287,10 @@
|
|||||||
<value>Multiple Games Detected</value>
|
<value>Multiple Games Detected</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmMain_NewSaveNotificationMulti" xml:space="preserve">
|
<data name="frmMain_NewSaveNotificationMulti" xml:space="preserve">
|
||||||
<value>[PARAM] New Saves Pending</value>
|
<value>[PARAM] New Backups Pending</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmMain_NewSaveNotificationSingle" xml:space="preserve">
|
<data name="frmMain_NewSaveNotificationSingle" xml:space="preserve">
|
||||||
<value>[PARAM] New Save Pending</value>
|
<value>[PARAM] New Backup Pending</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmMain_NoDetails" xml:space="preserve">
|
<data name="frmMain_NoDetails" xml:space="preserve">
|
||||||
<value>Game details are unavailable.</value>
|
<value>Game details are unavailable.</value>
|
||||||
@@ -424,12 +424,6 @@
|
|||||||
<data name="App_ConfirmDirty" xml:space="preserve">
|
<data name="App_ConfirmDirty" xml:space="preserve">
|
||||||
<value>There are unsaved changes on this form. Do you want to save?</value>
|
<value>There are unsaved changes on this form. Do you want to save?</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="App_KB" xml:space="preserve">
|
|
||||||
<value>[PARAM] KB</value>
|
|
||||||
</data>
|
|
||||||
<data name="App_MB" xml:space="preserve">
|
|
||||||
<value>[PARAM] MB</value>
|
|
||||||
</data>
|
|
||||||
<data name="frmGameManager_BackupTimeAndName" xml:space="preserve">
|
<data name="frmGameManager_BackupTimeAndName" xml:space="preserve">
|
||||||
<value>[PARAM] ([PARAM])</value>
|
<value>[PARAM] ([PARAM])</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -659,7 +653,7 @@
|
|||||||
<value>Custom</value>
|
<value>Custom</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmGameManager_optPendingRestores" xml:space="preserve">
|
<data name="frmGameManager_optPendingRestores" xml:space="preserve">
|
||||||
<value>New Saves Pending</value>
|
<value>New Backups Pending</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmGameManager_OutofSync" xml:space="preserve">
|
<data name="frmGameManager_OutofSync" xml:space="preserve">
|
||||||
<value>Out of Sync</value>
|
<value>Out of Sync</value>
|
||||||
@@ -1075,9 +1069,6 @@
|
|||||||
<data name="frmSettings_chkBackupConfirm" xml:space="preserve">
|
<data name="frmSettings_chkBackupConfirm" xml:space="preserve">
|
||||||
<value>Disable backup confirmation</value>
|
<value>Disable backup confirmation</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmSettings_chkCheckSum" xml:space="preserve">
|
|
||||||
<value>Verify backup files with a checksum</value>
|
|
||||||
</data>
|
|
||||||
<data name="frmSettings_chkCreateFolder" xml:space="preserve">
|
<data name="frmSettings_chkCreateFolder" xml:space="preserve">
|
||||||
<value>Create a sub-folder for each game</value>
|
<value>Create a sub-folder for each game</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -1087,8 +1078,8 @@
|
|||||||
<data name="frmSettings_chkOverwriteWarning" xml:space="preserve">
|
<data name="frmSettings_chkOverwriteWarning" xml:space="preserve">
|
||||||
<value>Show overwrite warning</value>
|
<value>Show overwrite warning</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmSettings_chkRestoreOnLaunch" xml:space="preserve">
|
<data name="frmSettings_chkRestoreNotify" xml:space="preserve">
|
||||||
<value>Notify when there are new backup files to restore</value>
|
<value>Display notifications about new backups</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmSettings_chkShowDetectionTips" xml:space="preserve">
|
<data name="frmSettings_chkShowDetectionTips" xml:space="preserve">
|
||||||
<value>Show detection notifications</value>
|
<value>Show detection notifications</value>
|
||||||
@@ -1306,8 +1297,8 @@
|
|||||||
<data name="mgrBackup_BackupInProgress" xml:space="preserve">
|
<data name="mgrBackup_BackupInProgress" xml:space="preserve">
|
||||||
<value>Backup of [PARAM] in progress...</value>
|
<value>Backup of [PARAM] in progress...</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="mgrBackup_BackupWarnings" xml:space="preserve">
|
<data name="mgrBackup_7zWarnings" xml:space="preserve">
|
||||||
<value>[PARAM] backup finished with warnings or errors.</value>
|
<value>[PARAM] backup completed with warnings.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="mgrBackup_ConfirmManifestConflict" xml:space="preserve">
|
<data name="mgrBackup_ConfirmManifestConflict" xml:space="preserve">
|
||||||
<value>The manifest shows the backup folder contains a backup for [PARAM] that has not been restored on this computer.[BR][BR]Do you want to overwrite this file anyway?</value>
|
<value>The manifest shows the backup folder contains a backup for [PARAM] that has not been restored on this computer.[BR][BR]Do you want to overwrite this file anyway?</value>
|
||||||
@@ -1732,4 +1723,79 @@
|
|||||||
<data name="frmGameManager_Unknown" xml:space="preserve">
|
<data name="frmGameManager_Unknown" xml:space="preserve">
|
||||||
<value>Unknown</value>
|
<value>Unknown</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="frmGameManager_chkCleanFolder" xml:space="preserve">
|
||||||
|
<value>Delete folder on restore</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_AutoMark" xml:space="preserve">
|
||||||
|
<value>The saved game folder for [PARAM] does not exist or could not be determined, the backup has been automatically marked as restored.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_RestoreNotReady" xml:space="preserve">
|
||||||
|
<value>The backup file for [PARAM] is not ready to restore.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSettings_chkAutoMark" xml:space="preserve">
|
||||||
|
<value>Automatically mark new backups as restored when appropriate</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSettings_grpBackupHandling" xml:space="preserve">
|
||||||
|
<value>Backup Handling</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSettings_chkAutoRestore" xml:space="preserve">
|
||||||
|
<value>Automatically restore new backups</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_AutoRestoreFailure" xml:space="preserve">
|
||||||
|
<value>[PARAM] has multiple configurations and cannot be automatically restored.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_RestoreNotificationMulti" xml:space="preserve">
|
||||||
|
<value>[PARAM] new saved game backups are being automatically restored.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_RestoreNotificationSingle" xml:space="preserve">
|
||||||
|
<value>A new saved game backup for [PARAM] is being automatically restored.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_NoAutoMark" xml:space="preserve">
|
||||||
|
<value>The saved game folder for [PARAM] does not exist or could not be determined, this backup has been skipped.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_NoCheckSum" xml:space="preserve">
|
||||||
|
<value>The backup file for [PARAM] has no checksum, it cannot be automatically restored.</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrBackup_ConfirmDiskSpace" xml:space="preserve">
|
||||||
|
<value>You may not have enough disk space available to perform a backup.[BR][BR]Do you want to continue anyway?</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrBackup_ErrorDiskSpace" xml:space="preserve">
|
||||||
|
<value>Backup aborted due to lack of disk space.</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrCommon_AvailableDiskSpace" xml:space="preserve">
|
||||||
|
<value>Available Disk Space: [PARAM]</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrCommon_GB" xml:space="preserve">
|
||||||
|
<value>[PARAM] GB</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrCommon_KB" xml:space="preserve">
|
||||||
|
<value>[PARAM] KB</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrCommon_MB" xml:space="preserve">
|
||||||
|
<value>[PARAM] MB</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrCommon_PB" xml:space="preserve">
|
||||||
|
<value>[PARAM] PB</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrCommon_SavedGameFolderSize" xml:space="preserve">
|
||||||
|
<value>[PARAM] Save Folder Size: [PARAM]</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrCommon_TB" xml:space="preserve">
|
||||||
|
<value>[PARAM] TB</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmGameManager_lblParameter" xml:space="preserve">
|
||||||
|
<value>Parameter:</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmGameManager_ErrorProcessParameterDupe" xml:space="preserve">
|
||||||
|
<value>A game with this exact process and parameter already exists.</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrCommon_B" xml:space="preserve">
|
||||||
|
<value>[PARAM] B</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrBackup_7zCommandFailure" xml:space="preserve">
|
||||||
|
<value>[PARAM] backup failed due to a malformed command.</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrBackup_7zFatalError" xml:space="preserve">
|
||||||
|
<value>[PARAM] backup failed due to an error.</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
+20
-7
@@ -1,14 +1,27 @@
|
|||||||
Game Backup Monitor v1.0 Readme
|
Game Backup Monitor v1.02 Readme
|
||||||
http://mikemaximus.github.io/gbm-web/
|
http://mikemaximus.github.io/gbm-web/
|
||||||
gamebackupmonitor@gmail.com
|
gamebackupmonitor@gmail.com
|
||||||
|
|
||||||
December 15, 2016
|
July 1, 2017
|
||||||
|
|
||||||
Game Backup Monitor has reached 1.0!
|
New in 1.02
|
||||||
|
|
||||||
New in 1.0
|
- (Windows) Upgraded SQLite to 3.19.3.
|
||||||
|
- (All) The SQLite version is displayed on the "About" screen.
|
||||||
- (Windows) Resolved issues related to DPI display scaling. GBM looks best with scaling disabled via the Compatability tab.
|
- (All) Added the ability to detect command parameters.
|
||||||
- (All) Very minor bug fixes and tweaks.
|
- Use parameter detection for better detection of games running in emulators or interpreters like DOSBox.
|
||||||
|
- This is an advanced optional feature and is not available in the "Add Game Wizard", please read the manual (http://mikemaximus.github.io/gbm-web/manual.html) for more details.
|
||||||
|
- (Linux) Please note that Wine detection is still handled automatically by GBM and only requires a Windows process name. But this feature does work with Wine if you need to detect parameters!
|
||||||
|
- (All) Added the ability to resize and maximize the main program window.
|
||||||
|
- The log is now displayed by default and resizes with the window.
|
||||||
|
- The "Show/Hide Log" button has been removed due to technical issues with this change.
|
||||||
|
- The minimum window size will let you easily hide the log as in past versions.
|
||||||
|
- (All) The last browse location in various dialogs is now saved, such as when using the Import/Export feature.
|
||||||
|
- (All) Available disk space is checked before attempting a backup. The log now displays available disk space and save folder size.
|
||||||
|
- (Linux) Using the keyboard to navigate the game list in the Game Manager now works correctly.
|
||||||
|
- (All) Tags can now be added to a new game configuration before saving on the Game Manager.
|
||||||
|
- (All) Fixed various issues when adding new game configurations while using filters on the Game Manager.
|
||||||
|
- (All) Added better handling of 7-Zip warnings and errors.
|
||||||
|
- (Linux) GBM now requires the "readlink" utility to properly handle Wine games. However bash, ls and grep are no longer required.
|
||||||
|
|
||||||
The entire version history of GBM releases is available at http://mikemaximus.github.io/gbm-web/versionhistory.html
|
The entire version history of GBM releases is available at http://mikemaximus.github.io/gbm-web/versionhistory.html
|
||||||
Binary file not shown.
Binary file not shown.
@@ -1,15 +1,15 @@
|
|||||||
# [Game Backup Monitor] (http://mikemaximus.github.io/gbm-web/)
|
# [Game Backup Monitor](http://mikemaximus.github.io/gbm-web/)
|
||||||
|
|
||||||
![Screenshot] (http://mikemaximus.github.io/gbm-web/images/manual/manual_01.jpg)
|

|
||||||
|
|
||||||
Game Backup Monitor is a simple, but flexible application that detects games as you play them. Once you finish playing a game, a backup of the saved games will be made automatically using 7-Zip compression. GBM can be used on a single computer, or on multiple computers to effectively add cloud support to any game or application.
|
Game Backup Monitor is a simple, but flexible application that detects games as you play them. Once you finish playing a game, a backup of the saved games will be made automatically using 7-Zip compression. GBM can be used on a single computer, or on multiple computers to effectively add cloud support to any game or application.
|
||||||
|
|
||||||
**License**: GNU General Public License version 3.0 (GPLv3)<br />
|
**License**: GNU General Public License version 3.0 (GPLv3)<br />
|
||||||
**Language**: English ([Translation FAQ] (http://mikemaximus.github.io/gbm-web/translations.html))<br />
|
**Language**: English ([Translation FAQ](http://mikemaximus.github.io/gbm-web/translations.html))<br />
|
||||||
**Platform**: Windows (.NET 4) & Linux (Mono)
|
**Platform**: Windows (.NET 4) & Linux (Mono)
|
||||||
|
|
||||||
[About Game Backup Monitor] (http://mikemaximus.github.io/gbm-web/about.html) <br />
|
[About Game Backup Monitor](http://mikemaximus.github.io/gbm-web/about.html) <br />
|
||||||
[Game Backup Monitor FAQ] (http://mikemaximus.github.io/gbm-web/faq.html) <br />
|
[Game Backup Monitor FAQ](http://mikemaximus.github.io/gbm-web/faq.html) <br />
|
||||||
[Game Backup Monitor Manual] (http://mikemaximus.github.io/gbm-web/manual.html) <br />
|
[Game Backup Monitor Manual](http://mikemaximus.github.io/gbm-web/manual.html) <br />
|
||||||
[List of Preconfigured Games] (http://mikemaximus.github.io/gbm-web/GBM_Official.xml) <br /> <br />
|
[List of Preconfigured Games](http://mikemaximus.github.io/gbm-web/GBM_Official.xml) <br /> <br />
|
||||||
Updates regarding this project are available via the [Game Backup Monitor web site] (http://mikemaximus.github.io/gbm-web/).
|
Updates regarding this project are available via the [Game Backup Monitor web site](http://mikemaximus.github.io/gbm-web/).
|
||||||
|
|||||||
Reference in New Issue
Block a user