Exemple #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(RoGrfFileItem item)
 {
     DeleteFile(RoGrfFileItem.BuildNameHash(item.Filepath));
 }
Exemple #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 RoGrfFileItem GetFileByName(string filepath)
        {
            var nameHash = RoGrfFileItem.BuildNameHash(filepath);

            return(GetFileByHash(nameHash));
        }