/// <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)); }
/// <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)); }