From 866e7ff778cea55751eee87aec2e3c44e43952f1 Mon Sep 17 00:00:00 2001 From: psychonic Date: Sat, 10 Dec 2011 01:18:24 -0500 Subject: [PATCH] Fixed DD crash when specifying -dir without -game. --- DepotDownloader/ContentDownloader.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index fa242934..83ef80e0 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -46,6 +46,10 @@ namespace DepotDownloader installDir = Path.Combine(ContentDownloader.Config.InstallDirectory, serverFolder); Directory.CreateDirectory(installDir); } + else + { + installDir = ContentDownloader.Config.InstallDirectory; + } } } catch