3 This file is part of the HandBrake source code.
\r
4 Homepage: <http://handbrake.fr>.
\r
5 It may be used under the terms of the GNU General Public License. */
\r
8 using System.Windows.Forms;
\r
10 using Handbrake.Presets;
\r
14 static class Program
\r
17 /// The main entry point for the application.
\r
22 Screen scr = Screen.PrimaryScreen;
\r
23 if ((scr.Bounds.Width < 1024) || (scr.Bounds.Height < 620))
\r
24 MessageBox.Show("Your system does not meet the minimum requirements for HandBrake. \n" + "Your screen is running at: " + scr.Bounds.Width + "x" + scr.Bounds.Height + " \nScreen resolution is too Low. Must be 1024x720 or greater", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
\r
27 string logDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"HandBrake\logs");
\r
28 if (!Directory.Exists(logDir))
\r
29 Directory.CreateDirectory(logDir);
\r
31 if (!File.Exists(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"HandBrake\presets.xml")))
\r
33 PresetsHandler x = new PresetsHandler();
\r
34 x.UpdateBuiltInPresets();
\r
37 Application.EnableVisualStyles();
\r
38 Application.SetCompatibleTextRenderingDefault(false);
\r
39 Application.Run(new frmMain());
\r