/// <summary> /// Saves the configs using to the Blizzard standard location /// </summary> /// <param name="directory"></param> public void Save(string directory) { // save the localised configs BuildConfig.Write(directory); CDNConfig.Write(directory); // update the hashes VersionsFile.SetValue("buildconfig", BuildConfig.Checksum.ToString()); VersionsFile.SetValue("cdnconfig", CDNConfig.Checksum.ToString()); // save the primary configs CDNsFile.Write(directory, Product); VersionsFile.Write(directory, Product); }
/// <summary> /// Saves the configs using to the Blizzard standard location /// </summary> /// <param name="directory"></param> public void Save(string directory) { // save and update patch config value if (PatchConfig != null) { PatchConfig?.Write(directory); BuildConfig?.SetValue("patch-config", PatchConfig.Checksum.ToString()); } // save the localised configs BuildConfig?.Write(directory); CDNConfig?.Write(directory); // update the hashes VersionsFile.SetValue("buildconfig", BuildConfig.Checksum.ToString()); VersionsFile.SetValue("cdnconfig", CDNConfig.Checksum.ToString()); // save the primary configs CDNsFile.Write(directory, Product); VersionsFile.Write(directory, Product); }