refined instdata.arc special case.

This commit is contained in:
morkt 2015-09-20 08:22:01 +04:00
parent 9371221b19
commit 56ec975998

View File

@ -100,7 +100,8 @@ namespace GameRes.Formats.Rpm
return null;
// special case for "instdata.arc" archives
if (Path.GetFileName (file.Name).Equals ("instdata.arc", StringComparison.InvariantCultureIgnoreCase))
if (scheme.Keyword != "inst"
&& Path.GetFileName (file.Name).Equals ("instdata.arc", StringComparison.InvariantCultureIgnoreCase))
scheme = new EncryptionScheme ("inst", scheme.NameLength);
int index_size = count * (scheme.NameLength + 12);