(DatOpener.TryOpen): compare .lst filename against archive name.

This commit is contained in:
morkt 2015-08-01 18:29:07 +04:00
parent 2d22dbe946
commit 3342461ac6

View File

@ -49,6 +49,8 @@ namespace GameRes.Formats.Ffa
public override ArcFile TryOpen (ArcView file)
{
string lst_name = Path.ChangeExtension (file.Name, ".lst");
if (lst_name == file.Name)
return null;
var lst_info = new FileInfo (lst_name);
if (!lst_info.Exists)
return null;