(LINK): recognize params v05.7

This commit is contained in:
morkt 2017-12-26 19:54:53 +04:00
parent c6bff302dc
commit dd0c72ba15

View File

@ -438,13 +438,12 @@ namespace GameRes.Formats.Kaguya
public static ParamsDeserializer Create (IBinaryStream input) public static ParamsDeserializer Create (IBinaryStream input)
{ {
var header = input.ReadHeader (0x11); var header = input.ReadHeader (0x11);
if (header.AsciiEqual ("[SCR-PARAMS]")) if (header.AsciiEqual ("[SCR-PARAMS]v0"))
{ {
var version = Version.Parse (header.GetCString (13, 4)); var version = Version.Parse (header.GetCString (13, 4));
if (header.AsciiEqual (12, "v02")) if (2 == version.Major)
return new ParamsV2Deserializer (input, version); return new ParamsV2Deserializer (input, version);
else if (header.AsciiEqual (12, "v05.4") || header.AsciiEqual (12, "v05.5") || else if (5 == version.Major && (version.Minor >= 4 && version.Minor <= 7))
header.AsciiEqual (12, "v05.6"))
return new ParamsV5Deserializer (input, version); return new ParamsV5Deserializer (input, version);
} }
throw new UnknownEncryptionScheme(); throw new UnknownEncryptionScheme();