Ejemplo n.º 1
0
 /// <summary>
 /// Removes the given file from internal lists
 /// The grf needs to be saved to save the changes
 /// </summary>
 /// <param name="item">The grf file</param>
 public void DeleteFile(FileItem item)
 {
     DeleteFile(FileItem.BuildNameHash(item.Filepath));
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Builds the hash from the given filepath and returns the grf file with the hash
        /// <para>Note: returns null if not found</para>
        /// </summary>
        /// <param name="filepath">File filepath</param>
        /// <returns></returns>
        public FileItem GetFileByName(string filepath)
        {
            var nameHash = FileItem.BuildNameHash(filepath);

            return(GetFileByHash(nameHash));
        }