(ReadBaseImage): use VFS.CombinePath()

This commit is contained in:
morkt 2015-09-02 04:11:22 +04:00
parent 7a8608475e
commit 8105d7c59f

View File

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