handle unfinished downloads
This commit is contained in:
parent
1aa93e2267
commit
48bb49671a
1 changed files with 11 additions and 0 deletions
|
@ -102,6 +102,17 @@ namespace EnvyUpdate
|
||||||
GlobalVars.startMinimized = true;
|
GlobalVars.startMinimized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Check for old unfinished downloads
|
||||||
|
string[] leftovers = Directory.GetFiles(GlobalVars.directoryOfExe, "*-nvidia-installer.exe.downloading");
|
||||||
|
if (leftovers.Length > 0)
|
||||||
|
{
|
||||||
|
foreach (string leftover in leftovers)
|
||||||
|
{
|
||||||
|
Debug.LogToFile("INFO Deleting leftover download " + leftover);
|
||||||
|
File.Delete(leftover);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
GlobalVars.isMobile = Util.IsMobile();
|
GlobalVars.isMobile = Util.IsMobile();
|
||||||
Debug.LogToFile("INFO Mobile: " + GlobalVars.isMobile);
|
Debug.LogToFile("INFO Mobile: " + GlobalVars.isMobile);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue