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); }
public LeagueRawInstallation(string managerInstallationFolder, string folder) : base(managerInstallationFolder, folder) { string backupArchivePath = Path.Combine(managerInstallationFolder, "backup.zip"); _backupArchive = new LeagueBackupArchive(backupArchivePath); }