From 26d7251705001ed7cf5527ac8734439fd996cc1f Mon Sep 17 00:00:00 2001 From: morkt Date: Fri, 18 Sep 2015 08:47:28 +0400 Subject: [PATCH] fixed CxEncryption deserialization. --- ArcFormats/KiriKiri/KiriKiriCx.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ArcFormats/KiriKiri/KiriKiriCx.cs b/ArcFormats/KiriKiri/KiriKiriCx.cs index 855d8597..01a33002 100644 --- a/ArcFormats/KiriKiri/KiriKiriCx.cs +++ b/ArcFormats/KiriKiri/KiriKiriCx.cs @@ -26,6 +26,7 @@ using System; using System.Collections.Generic; using System.Diagnostics; +using System.Runtime.Serialization; namespace GameRes.Formats.KiriKiri { @@ -64,6 +65,12 @@ namespace GameRes.Formats.KiriKiri [NonSerialized] CxProgram[] m_program_list = new CxProgram[0x80]; + [OnDeserialized()] + void PostDeserialization (StreamingContext context) + { + m_program_list = new CxProgram[0x80]; + } + public CxEncryption (CxScheme scheme) { m_mask = scheme.Mask;