change debug to hardcoded
This commit is contained in:
parent
dea07706ac
commit
d48b683fe8
2 changed files with 13 additions and 23 deletions
|
@ -10,41 +10,30 @@ namespace EnvyUpdate
|
||||||
public static int LoadFakeIDs(string idType)
|
public static int LoadFakeIDs(string idType)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Usage:
|
* Usage: Supply /debug flag to exe. Imitates a GTX 1080ti on Win10 x64 non-dch.
|
||||||
* Create debug.txt file.
|
|
||||||
* Fill in variables:
|
|
||||||
* Line 1: psid
|
|
||||||
* Line 2: pfid
|
|
||||||
* Line 3: osid
|
|
||||||
* Line 4: dtcid
|
|
||||||
* Line 5: Local driver version
|
|
||||||
*
|
|
||||||
* Supply /debug flag to exe.
|
|
||||||
*/
|
*/
|
||||||
string line = null;
|
|
||||||
switch (idType)
|
switch (idType)
|
||||||
{
|
{
|
||||||
case "psid":
|
case "psid":
|
||||||
line = File.ReadLines(debugFilePath).Take(1).First();
|
return 101;
|
||||||
break;
|
|
||||||
case "pfid":
|
case "pfid":
|
||||||
line = File.ReadLines(debugFilePath).Skip(1).Take(1).First();
|
return 845;
|
||||||
break;
|
|
||||||
case "osid":
|
case "osid":
|
||||||
line = File.ReadLines(debugFilePath).Skip(2).Take(1).First();
|
return 57;
|
||||||
break;
|
|
||||||
case "dtcid":
|
case "dtcid":
|
||||||
line = File.ReadLines(debugFilePath).Skip(3).Take(1).First();
|
return 0;
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
break;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return int.Parse(line);
|
|
||||||
}
|
}
|
||||||
public static string LocalDriv()
|
public static string LocalDriv()
|
||||||
{
|
{
|
||||||
return File.ReadLines(debugFilePath).Skip(4).Take(1).First();
|
return "466.11";
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string GPUname()
|
||||||
|
{
|
||||||
|
return "Nvidia GeForce GTX 1080ti (debug)";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -113,6 +113,7 @@ namespace EnvyUpdate
|
||||||
dtcid = Debug.LoadFakeIDs("dtcid");
|
dtcid = Debug.LoadFakeIDs("dtcid");
|
||||||
localDriv = Debug.LocalDriv();
|
localDriv = Debug.LocalDriv();
|
||||||
textblockGPU.Text = localDriv;
|
textblockGPU.Text = localDriv;
|
||||||
|
textblockGPUName.Text = Debug.GPUname();
|
||||||
}
|
}
|
||||||
|
|
||||||
gpuURL = "http://www.nvidia.com/Download/processDriver.aspx?psid=" + psid.ToString() + "&pfid=" + pfid.ToString() + "&osid=" + osid.ToString() + "&dtcid=" + dtcid.ToString(); // + "&lid=" + langid.ToString();
|
gpuURL = "http://www.nvidia.com/Download/processDriver.aspx?psid=" + psid.ToString() + "&pfid=" + pfid.ToString() + "&osid=" + osid.ToString() + "&dtcid=" + dtcid.ToString(); // + "&lid=" + langid.ToString();
|
||||||
|
|
Reference in a new issue