WinGui: Fix ARM libhb detection
This commit is contained in:
parent
48f7e18b46
commit
c76f765ccc
@ -59,7 +59,7 @@ namespace HandBrakeWPF
|
|||||||
|
|
||||||
private void Init(StartupEventArgs e)
|
private void Init(StartupEventArgs e)
|
||||||
{
|
{
|
||||||
if (!File.Exists("hb.dll") && !File.Exists(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "hb.dll")))
|
if (!SystemInfo.IsArmDevice && !File.Exists("hb.dll") && !File.Exists(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "hb.dll")))
|
||||||
{
|
{
|
||||||
MessageBox.Show("hb.dll file not found. Application will not run correctly without this. Please re-install HandBrake.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
|
MessageBox.Show("hb.dll file not found. Application will not run correctly without this. Please re-install HandBrake.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||||
this.Shutdown();
|
this.Shutdown();
|
||||||
@ -67,6 +67,14 @@ namespace HandBrakeWPF
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (SystemInfo.IsArmDevice && !File.Exists("hb_a64.dll") && !File.Exists(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "hb_a64.dll")))
|
||||||
|
{
|
||||||
|
MessageBox.Show("hb_a64.dll file not found. Application will not run correctly without this. Please re-install HandBrake.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||||
|
this.Shutdown();
|
||||||
|
Environment.Exit(-1);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// We don't support Windows earlier than 10.
|
// We don't support Windows earlier than 10.
|
||||||
if (!SystemInfo.IsWindows10OrLater())
|
if (!SystemInfo.IsWindows10OrLater())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user