Skip to content

Commit

Permalink
Fixed missing directory error
Browse files Browse the repository at this point in the history
  • Loading branch information
evilfactory committed Aug 30, 2024
1 parent fe6a034 commit 575b489
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Luatrauma.AutoUpdater/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ internal class Program

static void Main(string[] args)
{
string tempFolder = Path.Combine(Directory.GetCurrentDirectory(), "Luatrauma.AutoUpdater.Temp");
Directory.CreateDirectory(tempFolder);

AppDomain.CurrentDomain.UnhandledException += (sender, e) =>
{
Logger.Log("Unhandled exception: " + e.ExceptionObject);
Expand Down
2 changes: 0 additions & 2 deletions Luatrauma.AutoUpdater/Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ public async static Task Update()
string tempFolder = Path.Combine(Directory.GetCurrentDirectory(), "Luatrauma.AutoUpdater.Temp");
string patchZip = Path.Combine(tempFolder, "patch.zip");

Directory.CreateDirectory(tempFolder);

Logger.Log($"Downloading patch zip from {patchUrl}");

try
Expand Down

0 comments on commit 575b489

Please sign in to comment.