Exemplo n.º 1
0
 private static void LeagueInstallationTests()
 {
     using (LeagueManager manager = new LeagueManager("C:/Riot Games/League of Legends"))
     {
         manager.DeployRules.AddDeployModeRule("lol_game_client", LeagueManager.LeagueFileDeployMode.Default, LeagueManager.LeagueFileDeployMode.Managed);
         foreach (string file in Directory.EnumerateFiles(@"D:\Chewy\Desktop\Mystic Rift", "*.*", SearchOption.AllDirectories))
         {
             string gamePath = file.Replace(@"D:\Chewy\Desktop\Mystic Rift\lol_game_client\", "").Replace("\\", "/");
             //manager.InstallFile("lol_game_client", gamePath, file);
             manager.RevertFile("lol_game_client", gamePath);
         }
     }
 }