Skip to content

Commit

Permalink
Bugfix - Create plugin-translationfolder if required
Browse files Browse the repository at this point in the history
  • Loading branch information
Rookiestyle committed Sep 1, 2020
1 parent 5d9a06c commit 7faa1d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/EarlyUpdateCheck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
2 changes: 1 addition & 1 deletion version.info
Original file line number Diff line number Diff line change
@@ -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
:

0 comments on commit 7faa1d6

Please sign in to comment.