From 7faa1d63c4f8f91e5dae7a847a014c6bd5d2299a Mon Sep 17 00:00:00 2001 From: Rookiestyle Date: Tue, 1 Sep 2020 21:38:15 +0200 Subject: [PATCH] Bugfix - Create plugin-translationfolder if required --- src/EarlyUpdateCheck.cs | 2 ++ src/Properties/AssemblyInfo.cs | 4 ++-- version.info | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/EarlyUpdateCheck.cs b/src/EarlyUpdateCheck.cs index 6732c7b..42b6ac4 100644 --- a/src/EarlyUpdateCheck.cs +++ b/src/EarlyUpdateCheck.cs @@ -896,6 +896,8 @@ private bool DownloadFile(string source, string target) s.Close(); byte[] pb = ms.ToArray(); ms.Close(); + string sTargetDir = UrlUtil.GetShortestAbsolutePath(UrlUtil.GetFileDirectory(target, false, true)); + if (!System.IO.Directory.Exists(sTargetDir)) System.IO.Directory.CreateDirectory(sTargetDir); System.IO.File.WriteAllBytes(target, pb); PluginDebug.AddInfo("Download success", 0, "Source: " + source, "Target: " + target, "Download attempt: " + iAttempts.ToString()); return true; diff --git a/src/Properties/AssemblyInfo.cs b/src/Properties/AssemblyInfo.cs index 83a1dfd..6ee9f8d 100644 --- a/src/Properties/AssemblyInfo.cs +++ b/src/Properties/AssemblyInfo.cs @@ -24,6 +24,6 @@ // // You can specify all the values or you can use the default the Revision and // Build Numbers by using the '*' as shown below: -[assembly: AssemblyVersion("2.1")] -[assembly: AssemblyFileVersion("2.1")] +[assembly: AssemblyVersion("2.1.1")] +[assembly: AssemblyFileVersion("2.1.1")] [assembly: Guid("672570AF-CC57-4980-86F9-D48FD1CC707D")] \ No newline at end of file diff --git a/version.info b/version.info index b716735..69f9412 100644 --- a/version.info +++ b/version.info @@ -1,5 +1,5 @@ : -Early update check:2.1 +Early update check:2.1.1 Early update check!de:3 Early update check!ru:2 : \ No newline at end of file