fix updater

This commit is contained in:
fyr77 2020-08-04 18:11:04 +02:00
parent 67c4697134
commit 26df20827f
3 changed files with 8 additions and 27 deletions

View file

@ -16,31 +16,6 @@ namespace EnvyUpdate
{
internal class Util
{
/// <summary>
/// Parses GPU info from a cookie file
/// </summary>
/// <param name="path"></param>
/// <param name="term"></param>
/// <returns></returns>
public static int GetData(string path, string term)
{
string found = null;
string line;
using (StreamReader file = new StreamReader(path))
{
while ((line = file.ReadLine()) != null)
{
if (line.Contains(term))
{
found = line;
break;
}
}
}
int lastno = Convert.ToInt32(found.Split().Last());
return lastno;
}
/// <summary>
/// Gets local driver version.
/// </summary>