From 6182cadc8861de3a8fc62c2d5415f9c5a84fcb8f Mon Sep 17 00:00:00 2001 From: morkt Date: Tue, 3 Apr 2018 04:50:09 +0400 Subject: [PATCH] (XP3): parse "sen:" section. --- ArcFormats/KiriKiri/ArcXP3.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ArcFormats/KiriKiri/ArcXP3.cs b/ArcFormats/KiriKiri/ArcXP3.cs index 07f8987c..764b6cff 100644 --- a/ArcFormats/KiriKiri/ArcXP3.cs +++ b/ArcFormats/KiriKiri/ArcXP3.cs @@ -250,17 +250,17 @@ namespace GameRes.Formats.KiriKiri dir.Add (entry); } } - else if (0x3A7A7579 == entry_signature) // "yuz:" + else if (0x3A7A7579 == entry_signature || 0x3A6E6573 == entry_signature) // "yuz:" || "sen:" { - if (entry_size >= 0x10 && crypt_algorithm.Value is RiddleCxCrypt) + if (entry_size >= 0x10 && crypt_algorithm.Value is SenrenCxCrypt) { - long offset = header.ReadInt64(); + long offset = header.ReadInt64() + base_offset; header.ReadUInt32(); // unpacked size uint size = header.ReadUInt32(); if (offset > 0 && offset + size <= file.MaxOffset) { var yuz = file.View.ReadBytes (offset, size); - var crypt = crypt_algorithm.Value as RiddleCxCrypt; + var crypt = crypt_algorithm.Value as SenrenCxCrypt; crypt.ReadYuzNames (yuz, filename_map); } }