mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(PSB): ignore parse errors caused by invalid key.
This commit is contained in:
@@ -74,17 +74,21 @@ namespace GameRes.Formats.Emote
|
|||||||
{
|
{
|
||||||
foreach (var key in KnownKeys)
|
foreach (var key in KnownKeys)
|
||||||
{
|
{
|
||||||
if (reader.Parse (key))
|
try
|
||||||
{
|
{
|
||||||
var dir = reader.GetTextures();
|
if (reader.Parse (key))
|
||||||
if (null == dir)
|
{
|
||||||
dir = reader.GetLayers();
|
var dir = reader.GetTextures();
|
||||||
if (null == dir || 0 == dir.Count)
|
if (null == dir)
|
||||||
return null;
|
dir = reader.GetLayers();
|
||||||
return new ArcFile (file, this, dir);
|
if (null == dir || 0 == dir.Count)
|
||||||
|
return null;
|
||||||
|
return new ArcFile (file, this, dir);
|
||||||
|
}
|
||||||
|
if (!reader.IsEncrypted)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (!reader.IsEncrypted)
|
catch { /* ignore parse errors caused by invalid key */ }
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
if (reader.ParseNonEncrypted())
|
if (reader.ParseNonEncrypted())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user