Path fixes and PNG Unix icons
This commit is contained in:
Generated
-6
@@ -99,7 +99,6 @@ Partial Class frmFilter
|
|||||||
'
|
'
|
||||||
'optAll
|
'optAll
|
||||||
'
|
'
|
||||||
Me.optAll.AutoSize = True
|
|
||||||
Me.optAll.Location = New System.Drawing.Point(77, 19)
|
Me.optAll.Location = New System.Drawing.Point(77, 19)
|
||||||
Me.optAll.Name = "optAll"
|
Me.optAll.Name = "optAll"
|
||||||
Me.optAll.Size = New System.Drawing.Size(63, 17)
|
Me.optAll.Size = New System.Drawing.Size(63, 17)
|
||||||
@@ -110,7 +109,6 @@ Partial Class frmFilter
|
|||||||
'
|
'
|
||||||
'optAny
|
'optAny
|
||||||
'
|
'
|
||||||
Me.optAny.AutoSize = True
|
|
||||||
Me.optAny.Checked = True
|
Me.optAny.Checked = True
|
||||||
Me.optAny.Location = New System.Drawing.Point(6, 19)
|
Me.optAny.Location = New System.Drawing.Point(6, 19)
|
||||||
Me.optAny.Name = "optAny"
|
Me.optAny.Name = "optAny"
|
||||||
@@ -213,7 +211,6 @@ Partial Class frmFilter
|
|||||||
'
|
'
|
||||||
'optOr
|
'optOr
|
||||||
'
|
'
|
||||||
Me.optOr.AutoSize = True
|
|
||||||
Me.optOr.Location = New System.Drawing.Point(56, 19)
|
Me.optOr.Location = New System.Drawing.Point(56, 19)
|
||||||
Me.optOr.Name = "optOr"
|
Me.optOr.Name = "optOr"
|
||||||
Me.optOr.Size = New System.Drawing.Size(36, 17)
|
Me.optOr.Size = New System.Drawing.Size(36, 17)
|
||||||
@@ -224,7 +221,6 @@ Partial Class frmFilter
|
|||||||
'
|
'
|
||||||
'optAnd
|
'optAnd
|
||||||
'
|
'
|
||||||
Me.optAnd.AutoSize = True
|
|
||||||
Me.optAnd.Checked = True
|
Me.optAnd.Checked = True
|
||||||
Me.optAnd.Location = New System.Drawing.Point(6, 19)
|
Me.optAnd.Location = New System.Drawing.Point(6, 19)
|
||||||
Me.optAnd.Name = "optAnd"
|
Me.optAnd.Name = "optAnd"
|
||||||
@@ -302,11 +298,9 @@ Partial Class frmFilter
|
|||||||
Me.grpTagFilter.ResumeLayout(False)
|
Me.grpTagFilter.ResumeLayout(False)
|
||||||
Me.grpTagFilter.PerformLayout()
|
Me.grpTagFilter.PerformLayout()
|
||||||
Me.grpTagOptions.ResumeLayout(False)
|
Me.grpTagOptions.ResumeLayout(False)
|
||||||
Me.grpTagOptions.PerformLayout()
|
|
||||||
Me.grpGameFilter.ResumeLayout(False)
|
Me.grpGameFilter.ResumeLayout(False)
|
||||||
Me.grpGameFilter.PerformLayout()
|
Me.grpGameFilter.PerformLayout()
|
||||||
Me.grpGameInfoOptions.ResumeLayout(False)
|
Me.grpGameInfoOptions.ResumeLayout(False)
|
||||||
Me.grpGameInfoOptions.PerformLayout()
|
|
||||||
Me.ResumeLayout(False)
|
Me.ResumeLayout(False)
|
||||||
Me.PerformLayout()
|
Me.PerformLayout()
|
||||||
|
|
||||||
|
|||||||
@@ -336,8 +336,14 @@ Public Class frmGameManager
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
'Unix Handler
|
||||||
|
If Not mgrCommon.IsUnix Then
|
||||||
sNewPath = mgrCommon.OpenFileBrowser(frmGameManager_ChooseCustomIcon, "ico", _
|
sNewPath = mgrCommon.OpenFileBrowser(frmGameManager_ChooseCustomIcon, "ico", _
|
||||||
frmGameManager_Icon, sDefaultFolder, False)
|
frmGameManager_Icon, sDefaultFolder, False)
|
||||||
|
Else
|
||||||
|
sNewPath = mgrCommon.OpenFileBrowser(frmGameManager_ChooseCustomIcon, "png", _
|
||||||
|
"PNG", sDefaultFolder, False)
|
||||||
|
End If
|
||||||
|
|
||||||
If sNewPath <> String.Empty Then
|
If sNewPath <> String.Empty Then
|
||||||
txtIcon.Text = sNewPath
|
txtIcon.Text = sNewPath
|
||||||
|
|||||||
@@ -333,8 +333,16 @@ Public Class frmMain
|
|||||||
Dim fbBrowser As New OpenFileDialog
|
Dim fbBrowser As New OpenFileDialog
|
||||||
|
|
||||||
fbBrowser.Title = mgrCommon.FormatString(frmMain_ChooseIcon, oProcess.GameInfo.CroppedName)
|
fbBrowser.Title = mgrCommon.FormatString(frmMain_ChooseIcon, oProcess.GameInfo.CroppedName)
|
||||||
|
|
||||||
|
'Unix Handler
|
||||||
|
If Not mgrCommon.IsUnix Then
|
||||||
fbBrowser.DefaultExt = "ico"
|
fbBrowser.DefaultExt = "ico"
|
||||||
fbBrowser.Filter = frmMain_IconFilter
|
fbBrowser.Filter = frmMain_IconFilter
|
||||||
|
Else
|
||||||
|
fbBrowser.DefaultExt = "png"
|
||||||
|
fbBrowser.Filter = frmMain_PNGFilter
|
||||||
|
End If
|
||||||
|
|
||||||
Try
|
Try
|
||||||
fbBrowser.InitialDirectory = IO.Path.GetDirectoryName(oProcess.FoundProcess.MainModule.FileName)
|
fbBrowser.InitialDirectory = IO.Path.GetDirectoryName(oProcess.FoundProcess.MainModule.FileName)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
|
|||||||
+17
-16
@@ -201,6 +201,12 @@ Public Class mgrPath
|
|||||||
Dim oCustomVariable As clsPathVariable
|
Dim oCustomVariable As clsPathVariable
|
||||||
|
|
||||||
|
|
||||||
|
For Each oCustomVariable In hshCustomVariables.Values
|
||||||
|
If sValue.Contains(oCustomVariable.FormattedName) Then
|
||||||
|
Return sValue.Replace(oCustomVariable.FormattedName, oCustomVariable.Path)
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
If sValue.Contains("*appdatalocal*") Then
|
If sValue.Contains("*appdatalocal*") Then
|
||||||
Return sValue.Replace("*appdatalocal*", sAppDataLocal)
|
Return sValue.Replace("*appdatalocal*", sAppDataLocal)
|
||||||
End If
|
End If
|
||||||
@@ -209,12 +215,13 @@ Public Class mgrPath
|
|||||||
Return sValue.Replace("*appdataroaming*", sAppDataRoaming)
|
Return sValue.Replace("*appdataroaming*", sAppDataRoaming)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'Don't use these in Unix
|
'This needs to be tested last for Unix compatability
|
||||||
If Not mgrCommon.IsUnix Then
|
|
||||||
If sValue.Contains("*mydocs*") Then
|
If sValue.Contains("*mydocs*") Then
|
||||||
Return sValue.Replace("*mydocs*", sMyDocs)
|
Return sValue.Replace("*mydocs*", sMyDocs)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
'Don't use these in Unix
|
||||||
|
If Not mgrCommon.IsUnix Then
|
||||||
If sValue.Contains("*publicdocs*") Then
|
If sValue.Contains("*publicdocs*") Then
|
||||||
Return sValue.Replace("*publicdocs*", sPublicDocs)
|
Return sValue.Replace("*publicdocs*", sPublicDocs)
|
||||||
End If
|
End If
|
||||||
@@ -224,12 +231,6 @@ Public Class mgrPath
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
For Each oCustomVariable In hshCustomVariables.Values
|
|
||||||
If sValue.Contains(oCustomVariable.FormattedName) Then
|
|
||||||
Return sValue.Replace(oCustomVariable.FormattedName, oCustomVariable.Path)
|
|
||||||
End If
|
|
||||||
Next
|
|
||||||
|
|
||||||
Return sValue
|
Return sValue
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
@@ -241,6 +242,11 @@ Public Class mgrPath
|
|||||||
Dim sCurrentUser As String = "*currentuser*"
|
Dim sCurrentUser As String = "*currentuser*"
|
||||||
Dim oCustomVariable As clsPathVariable
|
Dim oCustomVariable As clsPathVariable
|
||||||
|
|
||||||
|
For Each oCustomVariable In hshCustomVariables.Values
|
||||||
|
If sValue.Contains(oCustomVariable.Path) Then
|
||||||
|
Return sValue.Replace(oCustomVariable.Path, oCustomVariable.FormattedName)
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
If sValue.Contains(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)) Then
|
If sValue.Contains(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)) Then
|
||||||
Return sValue.Replace(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), sAppDataLocal)
|
Return sValue.Replace(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), sAppDataLocal)
|
||||||
@@ -250,12 +256,13 @@ Public Class mgrPath
|
|||||||
Return sValue.Replace(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), sAppDataRoaming)
|
Return sValue.Replace(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), sAppDataRoaming)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'Don't use these in Unix
|
'This needs to be tested last for Unix compatability
|
||||||
If Not mgrCommon.IsUnix Then
|
|
||||||
If sValue.Contains(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)) Then
|
If sValue.Contains(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)) Then
|
||||||
Return sValue.Replace(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), sMyDocs)
|
Return sValue.Replace(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), sMyDocs)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
'Don't use these in Unix
|
||||||
|
If Not mgrCommon.IsUnix Then
|
||||||
If sValue.Contains(Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments)) Then
|
If sValue.Contains(Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments)) Then
|
||||||
Return sValue.Replace(Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments), sPublicDocs)
|
Return sValue.Replace(Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments), sPublicDocs)
|
||||||
End If
|
End If
|
||||||
@@ -265,12 +272,6 @@ Public Class mgrPath
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
For Each oCustomVariable In hshCustomVariables.Values
|
|
||||||
If sValue.Contains(oCustomVariable.Path) Then
|
|
||||||
Return sValue.Replace(oCustomVariable.Path, oCustomVariable.FormattedName)
|
|
||||||
End If
|
|
||||||
Next
|
|
||||||
|
|
||||||
Return sValue
|
Return sValue
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|||||||
Generated
+9
@@ -2868,6 +2868,15 @@ Namespace My.Resources
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to PNG files (*.png)|*.png.
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property frmMain_PNGFilter() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("frmMain_PNGFilter", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to Remote Database Vacuum Completed: [PARAM] KB.
|
''' Looks up a localized string similar to Remote Database Vacuum Completed: [PARAM] KB.
|
||||||
'''</summary>
|
'''</summary>
|
||||||
|
|||||||
@@ -1567,4 +1567,7 @@
|
|||||||
<data name="frmGameManager_ConfirmUnixImportWarning" xml:space="preserve">
|
<data name="frmGameManager_ConfirmUnixImportWarning" xml:space="preserve">
|
||||||
<value>You appear to be using a Unix based operating system. The official list currently contains only Microsoft Windows game configurations.[BR][BR]Do you wish to continue?</value>
|
<value>You appear to be using a Unix based operating system. The official list currently contains only Microsoft Windows game configurations.[BR][BR]Do you wish to continue?</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="frmMain_PNGFilter" xml:space="preserve">
|
||||||
|
<value>PNG files (*.png)|*.png</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
Reference in New Issue
Block a user