Skip to content
This repository has been archived by the owner on Nov 25, 2021. It is now read-only.

Commit

Permalink
Add File Version to output. Resolves #56
Browse files Browse the repository at this point in the history
This is going to be Major+Minor version. Structural Modification to Entries in the file should increment, at the minimum, Minor version, as it may break external applications.
  • Loading branch information
LukeCroteau committed Jun 8, 2021
1 parent 8cd4c96 commit ac8301a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion RaidExtractor.Core/AccountDumpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,11 @@ public partial class AccountDump

[Newtonsoft.Json.JsonProperty("stagePresets", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public Dictionary<int, int[]> StagePresets { get; set; }

[Newtonsoft.Json.JsonProperty("fileVersion", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string FileVersion { get; set; }
}


[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.24.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class Artifact
Expand Down
2 changes: 1 addition & 1 deletion RaidExtractor.Core/Extractor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ public AccountDump GetDump()
ArenaLeague = arenaLeague.ToString(),
GreatHall = greatHall,
Shards = shards,
StagePresets = stagePresets,
StagePresets = stagePresets,
};
}
finally
Expand Down
1 change: 1 addition & 0 deletions RaidExtractor/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ private void SaveButton_Click(object sender, EventArgs e)
{
var result = GetDump();
if (result == null) return;
result.FileVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(2);
if (SaveJSONDialog.ShowDialog() != DialogResult.OK) return;

try
Expand Down

0 comments on commit ac8301a

Please sign in to comment.