From a30b5d68c321e42a0909beea2794512f34761436 Mon Sep 17 00:00:00 2001 From: ReikoKitsune Date: Tue, 16 Aug 2016 19:39:14 +0300 Subject: [PATCH] Fixed multiple instance opening at one moment. Version update. Deftinitions reorder. --- src/NFirmwareEditor/Core/Consts.cs | 2 +- src/NFirmwareEditor/Definitions.xml | 10 +++++----- .../Managers/FirmwareDefinitionManager.cs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/NFirmwareEditor/Core/Consts.cs b/src/NFirmwareEditor/Core/Consts.cs index 8b95cf5..9f64d5b 100644 --- a/src/NFirmwareEditor/Core/Consts.cs +++ b/src/NFirmwareEditor/Core/Consts.cs @@ -2,7 +2,7 @@ { internal static class Consts { - internal const string ApplicationVersion = "4.05"; + internal const string ApplicationVersion = "4.06"; internal const string ApplicationTitleWoVersion = "NFirmwareEditor"; internal const string ApplicationTitle = ApplicationTitleWoVersion + " v" + ApplicationVersion; diff --git a/src/NFirmwareEditor/Definitions.xml b/src/NFirmwareEditor/Definitions.xml index 224ea48..a79460d 100644 --- a/src/NFirmwareEditor/Definitions.xml +++ b/src/NFirmwareEditor/Definitions.xml @@ -2,10 +2,10 @@ - + - + 0xC724 0xCB24 @@ -20,11 +20,11 @@ 0x88 0x91 0x9A - - + + - + 0xC724 0xCB24 diff --git a/src/NFirmwareEditor/Managers/FirmwareDefinitionManager.cs b/src/NFirmwareEditor/Managers/FirmwareDefinitionManager.cs index 75c2707..eaead21 100644 --- a/src/NFirmwareEditor/Managers/FirmwareDefinitionManager.cs +++ b/src/NFirmwareEditor/Managers/FirmwareDefinitionManager.cs @@ -21,7 +21,7 @@ public List Load() try { var serializer = new XmlSerializer(typeof(List)); - using (var fs = File.Open(Paths.DefinitionsFile, FileMode.Open)) + using (var fs = File.OpenRead(Paths.DefinitionsFile)) { var result = serializer.Deserialize(fs) as List ?? new List(); if (result.Any(definition => string.IsNullOrEmpty(definition.Name)