mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-26 19:14:20 +01:00
Fix another version comparison
This commit is contained in:
parent
3137801a4b
commit
b34c258a59
@ -2083,8 +2083,8 @@ namespace DS4Windows
|
|||||||
LastChecked = DateTime.Now;
|
LastChecked = DateTime.Now;
|
||||||
FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location);
|
FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location);
|
||||||
string version2 = fvi.FileVersion;
|
string version2 = fvi.FileVersion;
|
||||||
string newversion2 = File.ReadAllText(appdatapath + "\\version.txt");
|
string newversion2 = File.ReadAllText(appdatapath + "\\version.txt").Trim();
|
||||||
if (version2.Replace(',', '.').CompareTo(File.ReadAllText(appdatapath + "\\version.txt")) == -1)//CompareVersions();
|
if (version2.Replace(',', '.').CompareTo(newversion2) == -1)//CompareVersions();
|
||||||
{
|
{
|
||||||
if (MessageBox.Show(Properties.Resources.DownloadVersion.Replace("*number*", newversion2),
|
if (MessageBox.Show(Properties.Resources.DownloadVersion.Replace("*number*", newversion2),
|
||||||
Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||||
|
Loading…
Reference in New Issue
Block a user