diff options
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Interop/Interfaces/IHandBrakeInstance.cs | 10 | ||||
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Utilities/VersionHelper.cs | 8 |
2 files changed, 17 insertions, 1 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/Interfaces/IHandBrakeInstance.cs b/win/CS/HandBrake.ApplicationServices/Interop/Interfaces/IHandBrakeInstance.cs index 8230e6620..0c231cbac 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/Interfaces/IHandBrakeInstance.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/Interfaces/IHandBrakeInstance.cs @@ -58,6 +58,16 @@ namespace HandBrake.ApplicationServices.Interop.Interfaces /// </summary>
JsonScanObject Titles { get; }
+ /// <summary>
+ /// Gets the HandBrake version string.
+ /// </summary>
+ string Version { get; }
+
+ /// <summary>
+ /// Gets the HandBrake build number.
+ /// </summary>
+ int Build { get; }
+
#endregion
#region Public Methods
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/VersionHelper.cs b/win/CS/HandBrake.ApplicationServices/Utilities/VersionHelper.cs index b1a90d3e0..47673c112 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/VersionHelper.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/VersionHelper.cs @@ -12,6 +12,9 @@ namespace HandBrake.ApplicationServices.Utilities using System;
using System.Reflection;
+ using HandBrake.ApplicationServices.Interop;
+ using HandBrake.ApplicationServices.Interop.Interfaces;
+
/// <summary>
/// Version Utility
/// </summary>
@@ -26,7 +29,10 @@ namespace HandBrake.ApplicationServices.Utilities public static string GetVersion()
{
Version version = Assembly.GetEntryAssembly().GetName().Version;
- return IsNightly() ? string.Format("svn{0} (Nightly Build)", version.Revision) : string.Format("{0}.{1}.{2}.{3}", version.Major, version.Minor, version.Build, version.Revision);
+
+ IHandBrakeInstance instance = HandBrakeInstanceManager.GetScanInstance(1);
+
+ return IsNightly() ? string.Format("Nightly {0} ({1})", instance.Version, instance.Build) : string.Format("{0}.{1}.{2}.{3}", version.Major, version.Minor, version.Build, version.Revision);
}
/// <summary>
|