fixed file system navigation.

This commit is contained in:
morkt
2015-12-01 11:23:47 +04:00
parent 8bdde818c9
commit 95e861c5b1
2 changed files with 17 additions and 3 deletions

View File

@@ -595,7 +595,10 @@ namespace GameRes
m_vfs.Pop();
while (Count < desired_vfs_count)
{
m_vfs.ChDir (m_vfs.Top.FindFile (desired[Count-1]));
var entry = m_vfs.Top.FindFile (desired[Count-1]);
if (entry is SubDirEntry)
throw new FileNotFoundException();
m_vfs.ChDir (entry);
}
m_vfs.Top.CurrentDirectory = desired.Last();
}