示例#1
0
        /// <summary>
        /// Constructs a Version object from the specified hash, and stores proxies with a changelog dependency
        /// </summary>
        /// <param name="hash"></param>
        /// <param name="changelog"></param>
        /// <returns></returns>
        public Version GetVersion(string hash, Changelog changelog)
        {
            string filepath = Path.Combine(path, VERSION_PATH, hash);

            return(VersionFileManager.LoadVersion(hash, filepath, this, false, changelog));
        }
示例#2
0
        /// <summary>
        /// Loads a Version from the Working Directory
        /// </summary>
        /// <returns></returns>
        public Version GetWorkingVersion()
        {
            string dirpath = Path.Combine(path, WORKING_PATH);

            return(VersionFileManager.LoadVersion(dirpath, this, true));
        }
示例#3
0
        /// <summary>
        /// Constructs a Version object from the specified hash, including all filenames
        /// </summary>
        /// <param name="hash">The hash identifier of the version</param>
        /// <param name="loadData">If true, will load VersionData objects instead of proxies</param>
        /// <returns></returns>
        public Version GetVersion(string hash, bool loadData = false)
        {
            string filepath = Path.Combine(path, VERSION_PATH, hash);

            return(VersionFileManager.LoadVersion(hash, filepath, this, loadData));
        }