private void UpdateInfo() { using (PackReader reader = new PackReader(ModPath)) { DisplayName = ReadString(reader, "Mod\\DisplayName"); AuthorName = ReadString(reader, "Mod\\AuthorName"); Version = ReadString(reader, "Mod\\Version"); FlowScriptVersion = ReadVersion(reader, "Mod\\FlowScriptVersion"); FlowScriptBasicVersion = ReadVersion(reader, "Mod\\FlowScriptBasicVersion"); FlowScriptPPDVersion = ReadVersion(reader, "Mod\\FlowScriptPPDVersion"); FlowScriptSharpDXVersion = ReadVersion(reader, "Mod\\FlowScriptSharpDXVersion"); FlowScriptBasicExtensionVersion = ReadVersion(reader, "Mod\\FlowScriptBasicExtensionVersion"); FlowScriptDataVersion = ReadVersion(reader, "Mod\\FlowScriptDataVersion"); AnalyzeMod(reader); } using (FileStream fs = File.Open(ModPath, FileMode.Open)) { byte[] data = new byte[fs.Length]; fs.Read(data, 0, data.Length); FileHash = CryptographyUtility.CalcSha256Hash(data); FileHashString = CryptographyUtility.Getx2Encoding(FileHash); } }