From 8065029c806e5e50e2ef7828f0ee1edf96c41031 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 6 Apr 2019 15:41:04 +0100 Subject: WinGui: Add "hardware.enabled" option to portable.ini --- win/CS/HandBrakeWPF/App.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win/CS/HandBrakeWPF/App.xaml.cs') diff --git a/win/CS/HandBrakeWPF/App.xaml.cs b/win/CS/HandBrakeWPF/App.xaml.cs index c784eb7a5..ce31b066d 100644 --- a/win/CS/HandBrakeWPF/App.xaml.cs +++ b/win/CS/HandBrakeWPF/App.xaml.cs @@ -124,7 +124,7 @@ namespace HandBrakeWPF // NO-Hardware Mode - bool noHardware = e.Args.Any(f => f.Equals("--no-hardware")); + bool noHardware = e.Args.Any(f => f.Equals("--no-hardware")) || (Portable.IsPortable() && !Portable.IsHardwareEnabled()); // Initialise the Engine HandBrakeWPF.Helpers.LogManager.Init(); -- cgit v1.2.3