From dd0c72ba15c4930dbe2dad276218f2bbd611cfee Mon Sep 17 00:00:00 2001 From: morkt Date: Tue, 26 Dec 2017 19:54:53 +0400 Subject: [PATCH] (LINK): recognize params v05.7 --- ArcFormats/Kaguya/ArcLINK.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ArcFormats/Kaguya/ArcLINK.cs b/ArcFormats/Kaguya/ArcLINK.cs index 16e7a9a5..0514d70e 100644 --- a/ArcFormats/Kaguya/ArcLINK.cs +++ b/ArcFormats/Kaguya/ArcLINK.cs @@ -438,13 +438,12 @@ namespace GameRes.Formats.Kaguya public static ParamsDeserializer Create (IBinaryStream input) { var header = input.ReadHeader (0x11); - if (header.AsciiEqual ("[SCR-PARAMS]")) + if (header.AsciiEqual ("[SCR-PARAMS]v0")) { var version = Version.Parse (header.GetCString (13, 4)); - if (header.AsciiEqual (12, "v02")) + if (2 == version.Major) return new ParamsV2Deserializer (input, version); - else if (header.AsciiEqual (12, "v05.4") || header.AsciiEqual (12, "v05.5") || - header.AsciiEqual (12, "v05.6")) + else if (5 == version.Major && (version.Minor >= 4 && version.Minor <= 7)) return new ParamsV5Deserializer (input, version); } throw new UnknownEncryptionScheme();