mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +08:00
(VFS.ChangeFileName): new static method.
This commit is contained in:
parent
a70cc6a251
commit
7046987fed
@ -806,6 +806,15 @@ namespace GameRes
|
||||
int filename_portion_length = path.Length - filename_index;
|
||||
return filename.Length == filename_portion_length;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Change filename portion of the <paramref name="path"/> to <paramref name="target"/>.
|
||||
/// </summary>
|
||||
public static string ChangeFileName (string path, string target)
|
||||
{
|
||||
var dir_name = GetDirectoryName (path);
|
||||
return CombinePath (dir_name, target);
|
||||
}
|
||||
}
|
||||
|
||||
public class FileNameGlob
|
||||
|
Loading…
x
Reference in New Issue
Block a user