mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(SafOpener): ignore archives with no entries.
This commit is contained in:
parent
330d255883
commit
fb24c0363b
@ -54,6 +54,8 @@ namespace GameRes.Formats.Lune
|
|||||||
DecryptIndex (index_buffer, count);
|
DecryptIndex (index_buffer, count);
|
||||||
var reader = new IndexReader (index_buffer, count);
|
var reader = new IndexReader (index_buffer, count);
|
||||||
var dir = reader.Scan();
|
var dir = reader.Scan();
|
||||||
|
if (0 == dir.Count)
|
||||||
|
return null;
|
||||||
return new ArcFile (file, this, dir);
|
return new ArcFile (file, this, dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user