diff options
Diffstat (limited to 'win/C#/Program.cs')
-rw-r--r-- | win/C#/Program.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/win/C#/Program.cs b/win/C#/Program.cs index 885a36988..ecc9c0281 100644 --- a/win/C#/Program.cs +++ b/win/C#/Program.cs @@ -6,6 +6,8 @@ using System;
using System.Windows.Forms;
+using System.IO;
+using Handbrake.Presets;
namespace Handbrake
{
@@ -37,6 +39,14 @@ namespace Handbrake // Either Launch or Close the Application
if (launch)
{
+ string appDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\HandBrake";
+ if (!Directory.Exists(appDir))
+ {
+ Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\HandBrake");
+ PresetsHandler x = new PresetsHandler();
+ x.updateBuiltInPresets();
+ }
+
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmMain());
|