mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 07:34:00 +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;
|
int filename_portion_length = path.Length - filename_index;
|
||||||
return filename.Length == filename_portion_length;
|
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
|
public class FileNameGlob
|
||||||
|
Loading…
Reference in New Issue
Block a user