summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--win/C#/Program.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/win/C#/Program.cs b/win/C#/Program.cs
index ecc9c0281..f2bae9661 100644
--- a/win/C#/Program.cs
+++ b/win/C#/Program.cs
@@ -41,8 +41,14 @@ namespace Handbrake
{
string appDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\HandBrake";
if (!Directory.Exists(appDir))
+ Directory.CreateDirectory(appDir);
+
+ string logDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\HandBrake\\logs";
+ if (!Directory.Exists(logDir))
+ Directory.CreateDirectory(logDir);
+
+ if (!File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\HandBrake\\presets.xml"))
{
- Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\HandBrake");
PresetsHandler x = new PresetsHandler();
x.updateBuiltInPresets();
}