mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(CgArchive): dispose in constructor.
This commit is contained in:
parent
a4311a0f2a
commit
d0fe166083
@ -204,7 +204,15 @@ namespace GameRes.Formats.Eagls
|
||||
public CgArchive (ArcView arc, ArchiveFormat impl, ICollection<Entry> dir)
|
||||
: base (arc, impl, dir)
|
||||
{
|
||||
m_rng = DetectEncryptionScheme();
|
||||
try
|
||||
{
|
||||
m_rng = DetectEncryptionScheme();
|
||||
}
|
||||
catch
|
||||
{
|
||||
this.Dispose();
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
IRandomGenerator DetectEncryptionScheme ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user