Ejemplo n.º 1
0
        public LeagueRADSProject(LeagueRADSInstallation installation, string projectName, List <string> releases)
        {
            this.Installation = installation;
            this.Name         = projectName;
            foreach (string release in releases)
            {
                try
                {
                    this.Releases.Add(new LeagueRADSProjectRelease(this, release));
                }
                catch (LeagueRADSProjectRelease.ReleaseManifestNotFoundException)
                {
                }
            }
            if (this.Releases.Count == 0)
            {
                throw new NoValidReleaseException();
            }

            // Load backup archive if it exists
            string backupArchivePath = Path.Combine(Installation.ManagerInstallationFolder, Name, "backup.zip");

            this.BackupArchive = new LeagueBackupArchive(backupArchivePath);
        }
Ejemplo n.º 2
0
        public LeagueRawInstallation(string managerInstallationFolder, string folder) : base(managerInstallationFolder, folder)
        {
            string backupArchivePath = Path.Combine(managerInstallationFolder, "backup.zip");

            _backupArchive = new LeagueBackupArchive(backupArchivePath);
        }