diff --git a/.vs/PoE-MxFilterGen/v15/.suo b/.vs/PoE-MxFilterGen/v15/.suo index 569e741..48cc5a2 100644 Binary files a/.vs/PoE-MxFilterGen/v15/.suo and b/.vs/PoE-MxFilterGen/v15/.suo differ diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 0000000..bd10ef5 --- /dev/null +++ b/CHANGELOG @@ -0,0 +1,6 @@ +[October 26, 2017][1.0.4] +F Fixed 3 crashes due to "not nullable variables". +F Will now verify if \data and \gen exists and create them if they don't. + + + diff --git a/PoE-MxFilterGen/json/cards.cs b/PoE-MxFilterGen/json/cards.cs index 1b8bd53..aa43ea6 100644 --- a/PoE-MxFilterGen/json/cards.cs +++ b/PoE-MxFilterGen/json/cards.cs @@ -10,8 +10,8 @@ namespace PoE_MxFilterGen.json { public class SparklineCard { - public List data { get; set; } - public double totalChange { get; set; } + public List data { get; set; } + public double? totalChange { get; set; } } public class ExplicitModifierCard diff --git a/PoE-MxFilterGen/json/maps.cs b/PoE-MxFilterGen/json/maps.cs index 314ba95..ff2da99 100644 --- a/PoE-MxFilterGen/json/maps.cs +++ b/PoE-MxFilterGen/json/maps.cs @@ -10,8 +10,8 @@ namespace PoE_MxFilterGen.json { public class SparklineMap { - public List data { get; set; } - public double totalChange { get; set; } + public List data { get; set; } + public double? totalChange { get; set; } } public class LineMap diff --git a/PoE-MxFilterGen/main.cs b/PoE-MxFilterGen/main.cs index 89be445..89e57d9 100644 --- a/PoE-MxFilterGen/main.cs +++ b/PoE-MxFilterGen/main.cs @@ -12,7 +12,7 @@ namespace PoE_MxFilterGen { private static DateTime dt = DateTime.Now; - public static string version = "1.0.3"; + public static string version = "1.0.4"; public static string release = "stable"; public static string fDate = string.Format("{0}-{1}-{2}",dt.Day,dt.Month,dt.Year); @@ -24,6 +24,16 @@ namespace PoE_MxFilterGen msg.CMW(string.Format("Confidence: {0}", json.settings.GetConfidence().ToString()), true, 1); msg.CMW(string.Format("Minimum Value: {0}c", json.settings.GetMinimumValue().ToString()), true, 1); + // Check if data and gen exists + if (!Directory.Exists(@"data\")) + { + Directory.CreateDirectory(@"data\"); + } + if (!Directory.Exists(@"gen\")) + { + Directory.CreateDirectory(@"gen\"); + } + // Clean all generated data DirectoryInfo dataDir = new DirectoryInfo(@"data\"); DirectoryInfo genDir = new DirectoryInfo(@"gen\"); diff --git a/PoE-MxFilterGen/obj/Debug/mxfiltergen.exe b/PoE-MxFilterGen/obj/Debug/mxfiltergen.exe index 38a74b1..189067c 100644 Binary files a/PoE-MxFilterGen/obj/Debug/mxfiltergen.exe and b/PoE-MxFilterGen/obj/Debug/mxfiltergen.exe differ diff --git a/PoE-MxFilterGen/obj/Debug/mxfiltergen.pdb b/PoE-MxFilterGen/obj/Debug/mxfiltergen.pdb index 38a073a..170e163 100644 Binary files a/PoE-MxFilterGen/obj/Debug/mxfiltergen.pdb and b/PoE-MxFilterGen/obj/Debug/mxfiltergen.pdb differ