public override void RetrieveGame(string gameName, NetworkManager clienta, string selectedComputer, AsyncPack asyncPack)
        {
            string remotePath = clienta.GetDirFromGameNameBlizzard(gameName);

            Console.WriteLine(remotePath);
            FtpManager.GetInstance().RetrieveGame(SettingsManager.GetInstance().GetDefaultBlizzardPath(),
                                                  remotePath, selectedComputer, asyncPack);
        }
Пример #2
0
        public override void RetrieveGame(string gameName, NetworkManager clienta,
                                          string selectedComputer, AsyncPack asyncPack)
        {
            string remotePath = clienta.GetDirFromGameNameSteam(gameName);

            LogManager.GetCurrentClassLogger().Warn(remotePath);
            FtpManager.GetInstance()
            .RetrieveGame(SettingsManager.GetInstance().GetDefaultSteamLibrary(),
                          remotePath, selectedComputer, asyncPack);
        }
Пример #3
0
        private SteamOperations()
        {
            FindSteamappsPath();
            DirectoryInfo di = new DirectoryInfo(SteamappsPath);

            foreach (var file in FullDirList(di, "*.acf"))
            {
                string[] lines = File.ReadAllLines(SteamappsPath + "\\" + file);
                GetSteamGameDetails(lines);
            }
            LibraryPaths = GetLibraryPathsFromSteam(File.ReadAllLines(Path.Combine(SteamappsPath, "libraryfolders.vdf")));
            string[] files =
                Directory.GetFileSystemEntries(Path.Combine(SteamappsPath, "common"), "*",
                                               SearchOption.TopDirectoryOnly);
            FtpManager.GetInstance().AddLinks(files);
        }
        private BlizzardOperations()
        {
            List <string> list = GetBlizzardGameDetails();

            FtpManager.GetInstance().AddLinks(list.ToArray());
        }
Пример #5
0
 private void Application_Exit(object sender, ExitEventArgs e)
 {
     // Perform tasks at application exit
     DownloadTaskQueue.GetInstance().ForceStop();
     FtpManager.GetInstance().StopFtp();
 }