diff options
author | sr55 <[email protected]> | 2011-01-16 19:50:00 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-01-16 19:50:00 +0000 |
commit | 95c87ada9f0cd75956fd9a7b9b2bd1978d5ed1da (patch) | |
tree | cb78de27a05345b78de8d920e7d0639e94d44b88 /win/C#/frmMain.cs | |
parent | 01dec62bd9e0838de24860544869403da43e87e5 (diff) |
WinGui:
- Switch to .NET 4 Client Profile (Far smaller download size than the full profile .NET 3.5 installer that is currently required if the user does not have .Net installed)
- Import HandBrakeInterop library (by RandomEngy)
- Added experimental LibScan:IScan service to use libhb for scanning via the interop library. This is automatically used if hb.dll is detected in HandBrake's folder, otherwise HandBrakeCLI is used for the scan.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3752 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r-- | win/C#/frmMain.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 1c4ccb229..fa85b4763 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -56,7 +56,8 @@ namespace Handbrake private string dvdDriveLabel;
private Preset currentlySelectedPreset;
private DVD currentSource;
- private IScan SourceScan = new ScanService();
+
+ private IScan SourceScan;
private List<DriveInformation> drives;
private QueueTask queueEdit;
@@ -118,6 +119,9 @@ namespace Handbrake {
InitializeComponent();
+ // We can use LibHB, if the library hb.dll exists.
+ this.SourceScan = File.Exists("hb.dll") ? (IScan)new LibScan() : new ScanService();
+
// Update the users config file with the CLI version data.
Main.SetCliVersionData();
|