From 71fdcd32ecab5e3ca56fa54ec359db0a76362d85 Mon Sep 17 00:00:00 2001 From: morkt Date: Mon, 9 Apr 2018 08:41:06 +0400 Subject: [PATCH] (YuzCrypt): added NamesSectionId property. --- ArcFormats/KiriKiri/YuzCrypt.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ArcFormats/KiriKiri/YuzCrypt.cs b/ArcFormats/KiriKiri/YuzCrypt.cs index 3848f66a..b72fb739 100644 --- a/ArcFormats/KiriKiri/YuzCrypt.cs +++ b/ArcFormats/KiriKiri/YuzCrypt.cs @@ -38,6 +38,8 @@ namespace GameRes.Formats.KiriKiri { } + public virtual string NamesSectionId { get { return "sen:"; } } + internal virtual void ReadYuzNames (byte[] yuz, FilenameMap filename_map) { using (var ystream = new MemoryStream (yuz)) @@ -82,6 +84,8 @@ namespace GameRes.Formats.KiriKiri m_random_seed = seed; } + public override string NamesSectionId { get { return "dls:"; } } + internal override CxProgram NewProgram (uint seed) { return new CxProgramNana (seed, m_random_seed, ControlBlock); @@ -109,6 +113,8 @@ namespace GameRes.Formats.KiriKiri { } + public override string NamesSectionId { get { return "yuz:"; } } + public override void Decrypt (Xp3Entry entry, long offset, byte[] buffer, int pos, int count) { ProcessFirstBytes (entry, offset, buffer, pos, count);