LogTextBox("Checking for existing League of Legends Installation");
GameLocation = Path.Combine("League of Legends", "RADS");
string rootPath = Microsoft.Win32.Registry.GetValue(
@"HKEY_LOCAL_MACHINE\Software\Riot Games\League Of Legends",
"Path",
"")
.ToString();
if (Directory.Exists(GameLocation))
{
RetrieveCurrentInstallation = true;
}
else if (Directory.Exists(Path.Combine(rootPath,"RADS")))
{
RetrieveCurrentInstallation = true;
GameLocation = Path.Combine(rootPath,"RADS");
}
else
{
LogTextBox("Unable to find existing League of Legends. Copy your League of Legends folder into + "
+ Client.ExecutingDirectory
+ " to make the patching process quicker");
}