From fb24c0363be8fcf21827a0798dbc39a6f3342a17 Mon Sep 17 00:00:00 2001 From: morkt Date: Mon, 9 Nov 2015 00:10:34 +0400 Subject: [PATCH] (SafOpener): ignore archives with no entries. --- ArcFormats/ArcSAF.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArcFormats/ArcSAF.cs b/ArcFormats/ArcSAF.cs index 750d4be8..a38f678f 100644 --- a/ArcFormats/ArcSAF.cs +++ b/ArcFormats/ArcSAF.cs @@ -54,6 +54,8 @@ namespace GameRes.Formats.Lune DecryptIndex (index_buffer, count); var reader = new IndexReader (index_buffer, count); var dir = reader.Scan(); + if (0 == dir.Count) + return null; return new ArcFile (file, this, dir); }