When MOTD recommends an older CUETools version,

a newer CUETools version should ignore it.
This commit is contained in:
Grigory Chudov
2013-04-21 20:49:49 -04:00
parent bff5947982
commit 35c7d012ee

View File

@@ -390,7 +390,7 @@ namespace JDP
using (StreamReader sr = new StreamReader(MOTDTextPath, Encoding.UTF8)) using (StreamReader sr = new StreamReader(MOTDTextPath, Encoding.UTF8))
{ {
string version = sr.ReadLine(); string version = sr.ReadLine();
if (version != MOTDVersion) if (string.Compare(version, MOTDVersion) > 0)
{ {
string motd = sr.ReadToEnd(); string motd = sr.ReadToEnd();
_batchReport = new StringBuilder(); _batchReport = new StringBuilder();
@@ -606,7 +606,7 @@ namespace JDP
{ {
get get
{ {
return "CUETools 2.1.4"; return "CUETools 2.1.5";
} }
} }
@@ -712,7 +712,7 @@ namespace JDP
using (StreamReader sr = new StreamReader(MOTDTextPath, Encoding.UTF8)) using (StreamReader sr = new StreamReader(MOTDTextPath, Encoding.UTF8))
{ {
string version = sr.ReadLine(); string version = sr.ReadLine();
if (version != MOTDVersion) if (string.Compare(version, MOTDVersion) > 0)
{ {
string motd = sr.ReadToEnd(); string motd = sr.ReadToEnd();
_batchReport.Append(motd); _batchReport.Append(motd);