diff --git a/GameRes/FileSystem.cs b/GameRes/FileSystem.cs index 19c13700..a7de4f9f 100644 --- a/GameRes/FileSystem.cs +++ b/GameRes/FileSystem.cs @@ -806,6 +806,15 @@ namespace GameRes int filename_portion_length = path.Length - filename_index; return filename.Length == filename_portion_length; } + + /// + /// Change filename portion of the to . + /// + public static string ChangeFileName (string path, string target) + { + var dir_name = GetDirectoryName (path); + return CombinePath (dir_name, target); + } } public class FileNameGlob