Skip to content

Commit 7faa1d6

Browse files
committed
Bugfix - Create plugin-translationfolder if required
1 parent 5d9a06c commit 7faa1d6

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/EarlyUpdateCheck.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,8 @@ private bool DownloadFile(string source, string target)
896896
s.Close();
897897
byte[] pb = ms.ToArray();
898898
ms.Close();
899+
string sTargetDir = UrlUtil.GetShortestAbsolutePath(UrlUtil.GetFileDirectory(target, false, true));
900+
if (!System.IO.Directory.Exists(sTargetDir)) System.IO.Directory.CreateDirectory(sTargetDir);
899901
System.IO.File.WriteAllBytes(target, pb);
900902
PluginDebug.AddInfo("Download success", 0, "Source: " + source, "Target: " + target, "Download attempt: " + iAttempts.ToString());
901903
return true;

src/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
//
2525
// You can specify all the values or you can use the default the Revision and
2626
// Build Numbers by using the '*' as shown below:
27-
[assembly: AssemblyVersion("2.1")]
28-
[assembly: AssemblyFileVersion("2.1")]
27+
[assembly: AssemblyVersion("2.1.1")]
28+
[assembly: AssemblyFileVersion("2.1.1")]
2929
[assembly: Guid("672570AF-CC57-4980-86F9-D48FD1CC707D")]

version.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:
2-
Early update check:2.1
2+
Early update check:2.1.1
33
Early update check!de:3
44
Early update check!ru:2
55
:

0 commit comments

Comments
 (0)