(IgsDataOpener): works on physical file system only.

This commit is contained in:
morkt 2016-12-27 22:49:21 +04:00
parent 0f6da36925
commit 2ba9791d90

View File

@ -47,7 +47,7 @@ namespace GameRes.Formats.CellWorks
public override ArcFile TryOpen (ArcView file)
{
if (!file.Name.EndsWith (".dat", StringComparison.InvariantCultureIgnoreCase))
if (VFS.IsVirtual || !file.Name.EndsWith (".dat", StringComparison.InvariantCultureIgnoreCase))
return null;
var db_files = VFS.GetFiles (VFS.CombinePath (VFS.GetDirectoryName (file.Name), "*.db"));
if (!db_files.Any())