diff options
author | sr55 <[email protected]> | 2010-04-21 18:37:11 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-04-21 18:37:11 +0000 |
commit | 1c106d66f67ea968caffbc83d57438e7956e63c7 (patch) | |
tree | 493bf89501ea96a33fc3249dd9efe9baa976a32e /win/C#/Program.cs | |
parent | 886e890be333a392ca64047cf59f211f5d31f136 (diff) |
WinGui:
- enforce a minimum CLI revision for svn builds.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3247 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Program.cs')
-rw-r--r-- | win/C#/Program.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/win/C#/Program.cs b/win/C#/Program.cs index 2bd66db5b..bf4f317c2 100644 --- a/win/C#/Program.cs +++ b/win/C#/Program.cs @@ -42,6 +42,25 @@ namespace Handbrake return;
}
+ // Make sure we have a recent version for svn builds
+ string version = Properties.Settings.Default.hb_version;
+ if (version.Contains("svn"))
+ {
+ version = version.Replace("svn", string.Empty).Trim();
+ int build;
+ int.TryParse(version, out build);
+ if (build < Properties.Settings.Default.hb_min_cli)
+ {
+ MessageBox.Show(
+ "It appears you are trying to use a CLI executable that is too old for this version of the HandBrake GUI.\n" +
+ "Please update the HandBrakeCLI.exe to a newer build. ",
+ "Error",
+ MessageBoxButtons.OK,
+ MessageBoxIcon.Error);
+ return;
+ }
+ }
+
// Check were not running on a screen that's going to cause some funnies to happen.
Screen scr = Screen.PrimaryScreen;
if ((scr.Bounds.Width < 1024) || (scr.Bounds.Height < 620))
|