mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-25 04:14: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)
|
public CgArchive (ArcView arc, ArchiveFormat impl, ICollection<Entry> dir)
|
||||||
: base (arc, impl, dir)
|
: base (arc, impl, dir)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
m_rng = DetectEncryptionScheme();
|
m_rng = DetectEncryptionScheme();
|
||||||
}
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
this.Dispose();
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
IRandomGenerator DetectEncryptionScheme ()
|
IRandomGenerator DetectEncryptionScheme ()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user