Esempio n. 1
0
        // -----------------------------------------------------------------------------------------------------------


        public Addon(string pPath, string pTempPath)
        {
            pPath = pPath.ToLower().Trim();
            if (!string.IsNullOrEmpty(pPath))
            {
                AddonFolder = CheckAddonFolder(pPath);
            }

            if (AddonFolder == null)
            {
                throw new Exception("No valid addon folder or file specified");
            }

            Name = Path.GetFileName(AddonFolder);

            _tempPath = pTempPath;

            AddonManifest = new AddonManifest(Path.Combine(pPath, ManifestFileName), pTempPath);

            AddonContents = new AddonContents(Path.Combine(pPath, DataFolderName));
        }
Esempio n. 2
0
        // -----------------------------------------------------------------------------------------------------------------------------------------------------------------

        /// <summary>
        /// Recreate Manifest file from mirror folder
        /// </summary>
        /// <param name="pErrorText">Text of error, if any</param>
        /// <returns>Result of operation</returns>
        public bool RefreshManifestFromMirror(out string pErrorText)
        {
            return(AddonManifest.RefreshManifestFromMirror(out pErrorText));
        }
Esempio n. 3
0
        // -----------------------------------------------------------------------------------------------------------------------------------------------------------------


        /// <summary>
        /// Recreate Manifest file from mirror folder
        /// </summary>
        /// <param name="pErrorText">Text of error, if any</param>
        /// <returns>Result of operation</returns>
        public bool RecreateManifestMirror(out string pErrorText)
        {
            return(AddonManifest.RecreateManifestMirror(out pErrorText));
        }