mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +08:00
(FpkOpener.OpenEntry): refined null check.
This commit is contained in:
parent
12cfdd289e
commit
0c3ea083c5
@ -120,7 +120,7 @@ namespace GameRes.Formats.MoonhirGames
|
||||
byte[] header;
|
||||
if (null == farc || null == fent || !fent.IsEncrypted)
|
||||
{
|
||||
if (fent.IsEncrypted)
|
||||
if (fent != null && fent.IsEncrypted)
|
||||
throw new UnknownEncryptionScheme();
|
||||
input = arc.File.CreateStream (entry.Offset, entry.Size);
|
||||
header = new byte[0x10];
|
||||
|
Loading…
x
Reference in New Issue
Block a user