File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,14 +57,10 @@ public MainForm() {
5757
5858 Icon = Icon . ExtractAssociatedIcon ( Application . ExecutablePath ) ;
5959
60- // check if the OpenHardwareMonitorLib assembly has the correct version
61- if ( Assembly . GetAssembly ( typeof ( Computer ) ) . GetName ( ) . Version !=
62- Assembly . GetExecutingAssembly ( ) . GetName ( ) . Version ) {
63- MessageBox . Show (
64- "The version of the file OpenHardwareMonitorLib.dll is incompatible." ,
65- "Error" , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
66- Environment . Exit ( 0 ) ;
67- }
60+ var asm = Assembly . GetExecutingAssembly ( ) ;
61+ var version = asm . GetName ( ) . Version . ToString ( 3 ) ; //Application.ProductVersion;
62+ var bitness = Environment . Is64BitProcess ? "x64" : "x32" ;
63+ Text = $ "Open Hardware Monitor { bitness } - { version } ";
6864
6965 settings = new PersistentSettings ( ) ;
7066 settings . Load ( Path . ChangeExtension (
Original file line number Diff line number Diff line change 33using System . Globalization ;
44using System . IO ;
55using System . Security . Permissions ;
6- using System . Reflection ;
76
87namespace OpenHardwareMonitor . Hardware {
98
You can’t perform that action at this time.
0 commit comments