コード例 #1
0
        public LeagueRADSProjectRelease GetLatestRelease()
        {
            LeagueRADSProjectRelease latestRelease = null;

            foreach (LeagueRADSProjectRelease release in this.Releases)
            {
                uint releaseValue = LeagueRADSInstallation.GetReleaseValue(release.Version);
                if (latestRelease == null || releaseValue > latestRelease.VersionValue)
                {
                    latestRelease = release;
                }
            }
            return(latestRelease);
        }
コード例 #2
0
        public LeagueRADSProjectRelease(LeagueRADSProject project, string version)
        {
            this.Project      = project;
            this.Version      = version;
            this.VersionValue = LeagueRADSInstallation.GetReleaseValue(version);
            string manifestPath = this.GetFolder() + "/releasemanifest";

            if (File.Exists(manifestPath))
            {
                this.GameManifest = new ReleaseManifestFile(manifestPath);
            }
            else
            {
                throw new ReleaseManifestNotFoundException();
            }
            this.LoadOriginalManifest();
        }