/// <summary>
        /// Gets a set of information about the specified package file, such as stored size, disk size
        /// and storage flags.
        /// </summary>
        /// <returns>The reference info.</returns>
        /// <param name="fileReference">File reference.</param>
        public MPQFileInfo GetReferenceInfo(ItemReference fileReference)
        {
            if (!fileReference.IsFile)
            {
                return(null);
            }

            return(Package.GetFileInfo(fileReference.ItemPath));
        }
Пример #2
0
 /// <inheritdoc />
 public MPQFileInfo?GetFileInfo(string filePath)
 {
     return(_package?.GetFileInfo(filePath));
 }