BinderTool.Program.GetSavegameKey(GameVersion)

Here are the examples of the csharp api class BinderTool.Program.GetSavegameKey(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 UnpackSl2File(Options options)
        {
            using (FileStream inputStream = new FileStream(options.InputPath, FileMode.Open, FileAccess.Read))
            {
                byte[] key = GetSavegameKey(options.InputGameVersion);
                Sl2File sl2File = Sl2File.ReadSl2File(inputStream, key);
                foreach (var userData in sl2File.UserData)
                {
                    string outputFilePath = Path.Combine(options.OutputPath, userData.Name);
                    File.WriteAllBytes(outputFilePath, userData.DecryptedUserData);
                }
            }
        }