diff options
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Utilities/GeneralUtilities.cs')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Utilities/GeneralUtilities.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/GeneralUtilities.cs b/win/CS/HandBrake.ApplicationServices/Utilities/GeneralUtilities.cs index f316c85c6..0bf34b6a4 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/GeneralUtilities.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/GeneralUtilities.cs @@ -31,6 +31,11 @@ namespace HandBrake.ApplicationServices.Utilities /// </summary>
private static readonly string LogDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\HandBrake\\logs";
+ /// <summary>
+ /// The is lib hb present.
+ /// </summary>
+ private static bool? isLibHbPresent;
+
#endregion
#region Properties
@@ -46,6 +51,22 @@ namespace HandBrake.ApplicationServices.Utilities }
}
+ /// <summary>
+ /// Gets a value indicating whether is lib hb present.
+ /// </summary>
+ public static bool IsLibHbPresent
+ {
+ get
+ {
+ if (isLibHbPresent == null)
+ {
+ isLibHbPresent = File.Exists(Path.Combine(Application.StartupPath, "hb.dll"));
+ }
+
+ return isLibHbPresent.Value;
+ }
+ }
+
#endregion
#region Public Methods
|