mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-11 16:19:06 +08:00
fixed file system navigation.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user