From 7e7f7051ddcc1ffe5e760f7099055b4f56e06b85 Mon Sep 17 00:00:00 2001 From: FelisDiligens <47528453+FelisDiligens@users.noreply.github.com> Date: Sun, 23 Aug 2020 14:40:12 +0200 Subject: [PATCH] (Hotfix) Fixed an issue where new users would experience a crash because the tool didn't create a config folder. --- Fo76ini/Forms/Form1/Form1.cs | 5 ++++- Fo76ini/Interface/Translation.cs | 3 +++ Fo76ini/Shared.cs | 2 +- Fo76ini/languages/de-DE.xml | 2 +- Fo76ini/languages/en-US.xml | 2 +- VERSION | 2 +- setup.iss | 2 +- 7 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Fo76ini/Forms/Form1/Form1.cs b/Fo76ini/Forms/Form1/Form1.cs index 06a6eff..95a4285 100644 --- a/Fo76ini/Forms/Form1/Form1.cs +++ b/Fo76ini/Forms/Form1/Form1.cs @@ -194,10 +194,13 @@ private void PreventChangeOnMouseWheelForAllElements(Control control) private void Form1_Load(object sender, EventArgs e) { - // Create folder, if not present: + // Create folders, if not present: if (!Directory.Exists(Shared.AppConfigFolder)) Directory.CreateDirectory(Shared.AppConfigFolder); + if (!Directory.Exists(Localization.languageFolder)) + Directory.CreateDirectory(Localization.languageFolder); + // Create note to old config folder to inform users, if present: if (Directory.Exists(Shared.OldAppConfigFolder)) { diff --git a/Fo76ini/Interface/Translation.cs b/Fo76ini/Interface/Translation.cs index 20686a9..dc539a8 100644 --- a/Fo76ini/Interface/Translation.cs +++ b/Fo76ini/Interface/Translation.cs @@ -413,6 +413,9 @@ public void Save(String fileName, List