Changes for issue #142
This commit is contained in:
@@ -581,6 +581,8 @@ Public Class frmMain
|
|||||||
Dim sFileName As String = String.Empty
|
Dim sFileName As String = String.Empty
|
||||||
Dim sFileVersion As String = String.Empty
|
Dim sFileVersion As String = String.Empty
|
||||||
Dim sCompanyName As String = String.Empty
|
Dim sCompanyName As String = String.Empty
|
||||||
|
Dim ic As Icon
|
||||||
|
Dim sIconFile As String
|
||||||
|
|
||||||
'Wipe Game Info
|
'Wipe Game Info
|
||||||
lblStatus1.Text = String.Empty
|
lblStatus1.Text = String.Empty
|
||||||
@@ -589,14 +591,17 @@ Public Class frmMain
|
|||||||
|
|
||||||
'Get Process Information
|
'Get Process Information
|
||||||
Try
|
Try
|
||||||
Dim ic As Icon = System.Drawing.Icon.ExtractAssociatedIcon(oProcess.FoundProcess.MainModule.FileName)
|
'Grab icon from the executable and save a copy
|
||||||
pbIcon.Image = ic.ToBitmap
|
ic = System.Drawing.Icon.ExtractAssociatedIcon(oProcess.FoundProcess.MainModule.FileName)
|
||||||
|
sIconFile = mgrPath.SettingsRoot & Path.DirectorySeparatorChar & oProcess.GameInfo.ID & ".bmp"
|
||||||
|
ic.ToBitmap.Save(sIconFile)
|
||||||
|
ic.Dispose()
|
||||||
|
|
||||||
'Set Game Details
|
'Set Game Details
|
||||||
|
pbIcon.Image = Image.FromFile(sIconFile)
|
||||||
sFileName = oProcess.FoundProcess.MainModule.FileName
|
sFileName = oProcess.FoundProcess.MainModule.FileName
|
||||||
sFileVersion = oProcess.FoundProcess.MainModule.FileVersionInfo.FileVersion
|
sFileVersion = oProcess.FoundProcess.MainModule.FileVersionInfo.FileVersion
|
||||||
sCompanyName = oProcess.FoundProcess.MainModule.FileVersionInfo.CompanyName
|
sCompanyName = oProcess.FoundProcess.MainModule.FileVersionInfo.CompanyName
|
||||||
|
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
pbIcon.Image = Icon_Unknown
|
pbIcon.Image = Icon_Unknown
|
||||||
End Try
|
End Try
|
||||||
|
|||||||
@@ -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.1.3.*")>
|
<Assembly: AssemblyVersion("1.1.4.*")>
|
||||||
<Assembly: AssemblyFileVersion("1.1.3.0")>
|
<Assembly: AssemblyFileVersion("1.1.4.0")>
|
||||||
|
|
||||||
<Assembly: NeutralResourcesLanguageAttribute("en")>
|
<Assembly: NeutralResourcesLanguageAttribute("en")>
|
||||||
Reference in New Issue
Block a user