1.4.3 #38

Merged
Hesham merged 25 commits from release/1.4.3 into master 2018-12-21 22:19:53 +01:00
Showing only changes of commit c959fc2d84 - Show all commits

View File

@ -81,10 +81,10 @@ namespace OWTrack
DriveInfo[] driveInfo = DriveInfo.GetDrives(); DriveInfo[] driveInfo = DriveInfo.GetDrives();
List<string> paths = new List<string>(); List<string> paths = new List<string>();
//Searches all drives (too long) //Searches all drives (too long)
foreach (var drive in driveInfo) //foreach (var drive in driveInfo)
{ //{
//paths.AddRange(GetFiles(drive.ToString(),"Overwatch.exe")); //paths.AddRange(GetFiles(drive.ToString(),"Overwatch.exe"));
} //}
paths.AddRange(GetFiles(ProgramFiles.C, "Overwatch.exe")); paths.AddRange(GetFiles(ProgramFiles.C, "Overwatch.exe"));
paths.AddRange(GetFiles(ProgramFiles.D, "Overwatch.exe")); paths.AddRange(GetFiles(ProgramFiles.D, "Overwatch.exe"));
@ -94,7 +94,8 @@ namespace OWTrack
return true; return true;
} }
else if (paths.Count == 1) else if (paths.Count == 1
&& paths[0].Contains("Overwatch.exe"))
{ {
gamePath = paths[0]; gamePath = paths[0];
return true; return true;