(malie): generalized encryption handling.

This commit is contained in:
morkt
2017-06-06 23:22:19 +04:00
parent 2d186edb39
commit da3403339e
5 changed files with 319 additions and 163 deletions

View File

@@ -77,9 +77,9 @@ namespace GameRes.Formats.Malie
return new LibUReader (input);
}
public static LibUReader Create (ArcView file, Camellia encryption)
public static LibUReader Create (ArcView file, IMalieDecryptor decryptor)
{
var input = new EncryptedStream (file, encryption);
var input = new EncryptedStream (file, decryptor);
return new LibUReader (input);
}