diff --git a/ARKBreedingStats/Properties/AssemblyInfo.cs b/ARKBreedingStats/Properties/AssemblyInfo.cs index a3b3db8d..a005eae2 100644 --- a/ARKBreedingStats/Properties/AssemblyInfo.cs +++ b/ARKBreedingStats/Properties/AssemblyInfo.cs @@ -30,6 +30,6 @@ // Revision // [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("0.34.1.0")] +[assembly: AssemblyFileVersion("0.34.2.0")] [assembly: NeutralResourcesLanguage("en")] diff --git a/ARKBreedingStats/testCases/ExtractionTestControl.cs b/ARKBreedingStats/testCases/ExtractionTestControl.cs index fd3f705a..49a4a339 100644 --- a/ARKBreedingStats/testCases/ExtractionTestControl.cs +++ b/ARKBreedingStats/testCases/ExtractionTestControl.cs @@ -141,16 +141,16 @@ public void AddTestCase(ExtractionTestCase etc) private void newTestfileToolStripMenuItem_Click(object sender, EventArgs e) { ClearAll(true); - Properties.Settings.Default.LastSaveFileTestCases = ""; + Properties.Settings.Default.LastSaveFileTestCases = string.Empty; ShowTestCases(); UpdateFileLabel(); } private void loadTestfileToolStripMenuItem_Click(object sender, EventArgs e) { - string initialPath = Path.GetDirectoryName(Properties.Settings.Default.LastSaveFileTestCases); - if (string.IsNullOrWhiteSpace(initialPath)) - initialPath = Application.StartupPath; + string initialPath = Application.StartupPath; + if (!string.IsNullOrEmpty(Properties.Settings.Default.LastSaveFileTestCases)) + initialPath = Path.GetDirectoryName(Properties.Settings.Default.LastSaveFileTestCases); using (OpenFileDialog dlg = new OpenFileDialog()) { dlg.Filter = "ASB Extraction Testcases (*.json)|*.json"; diff --git a/ARKBreedingStats/values/Values.cs b/ARKBreedingStats/values/Values.cs index b46d2af3..5eae9874 100644 --- a/ARKBreedingStats/values/Values.cs +++ b/ARKBreedingStats/values/Values.cs @@ -183,7 +183,7 @@ public bool LoadValues() _V.LoadAliases(); _V.UpdateSpeciesBlueprintDictionaries(); - loadedModsHash = CreatureCollection.CalculateModListHash(new List()); + _V.loadedModsHash = CreatureCollection.CalculateModListHash(new List()); if (_V.modsManifest == null) {