Update HxCrypt implementation

This commit is contained in:
Crsky
2022-11-26 01:09:18 +08:00
parent 069e05bf13
commit d2ea724c07
2 changed files with 28 additions and 6 deletions

View File

@@ -311,7 +311,7 @@ namespace GameRes.Formats.KiriKiri
var flags = header.ReadUInt16 ();
var hx = file.View.ReadBytes (offset, size);
var crypt = crypt_algorithm.Value as HxCrypt;
hx_entry_info = crypt.ReadIndex (hx);
hx_entry_info = crypt.ReadIndex (Path.GetFileName (file.Name), hx);
}
catch (Exception) { /* ignore parse error */ }
}