Here are the examples of the csharp api class BinderTool.Program.GetRegulationKey(GameVersion) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: BinderTool
Source File: Program.cs
View license
private static void UnpackRegulationFile(Options options)
            using (FileStream inputStream = new FileStream(options.InputPath, FileMode.Open, FileAccess.Read))
                byte[] key = GetRegulationKey(options.InputGameVersion);
                EncFile encryptedFile = EncFile.ReadEncFile(inputStream, key, options.InputGameVersion);
                DcxFile compressedRegulationFile = DcxFile.Read(encryptedFile.Data);
                UnpackBndFile(new MemoryStream(compressedRegulationFile.Decompress()), options.OutputPath);