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