Search Function (not tested)

This commit is contained in:
HeshamTB 2018-09-02 14:24:55 +03:00
parent f4e8ca73cf
commit 8248450127

View File

@ -10,6 +10,8 @@ namespace OWTrack
public int wins, losses, startSR, newSR = 0;
public string gamePath;
private string[] commonDir = ["C:\Program Files","D:\Program Files"];
public void Track() { }
public void reset() { wins = 0; losses = 0; startSR = 0; newSR = 0; }
public void addWin() { wins++; }
@ -36,5 +38,32 @@ namespace OWTrack
throw ex;
}
}
public void LoacteOW()
{
try
{
string[] files = [];
for (int i = 0; i < commonDir.count; i++)
{
files.append(Directory.GetFiles(commonDir[i], "Overwatch*",SearchOption.AllDirectories));
}
if (files.contians("Overwatch.exe"))
{
foreach (string "*Overwatch.exe" in files)
{
}
}
}
catch (Exception e)
{
MesssageBox.show(e.message);
}
}
}
}