Skip to content

Commit

Permalink
Add check if dir exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Sampson committed Mar 28, 2018
1 parent 38f4085 commit fbb22dc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions BorderlessGaming.Logic/Core/LanguageManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ public static void Load()
{
try
{
Directory.Delete(AppEnvironment.LanguagePath, true);
Directory.CreateDirectory(AppEnvironment.LanguagePath);
if (Directory.Exists(AppEnvironment.LanguagePath))
{
Directory.Delete(AppEnvironment.LanguagePath, true);
Directory.CreateDirectory(AppEnvironment.LanguagePath);
}
Tools.ExtractZipFile(_archiveName, string.Empty, AppEnvironment.LanguagePath);
File.Delete(_archiveName);
}
Expand Down

0 comments on commit fbb22dc

Please sign in to comment.