use VFS.GetDirectoryName() method.

This commit is contained in:
morkt
2016-05-20 04:07:23 +04:00
parent 1bd3799372
commit 41b9dd9a54
5 changed files with 5 additions and 5 deletions

View File

@@ -182,7 +182,7 @@ namespace GameRes.Formats.Majiro
try
{
string name = Encodings.cp932.GetString (name_bin, 0, name_bin.Length-1);
string dir_name = Path.GetDirectoryName (meta.FileName);
string dir_name = VFS.GetDirectoryName (meta.FileName);
name = VFS.CombinePath (dir_name, name);
if (VFS.FileExists (name))
{