WinGui: Fix ARM libhb detection

This commit is contained in:
sr55 2025-05-08 18:17:09 +01:00
parent 48f7e18b46
commit c76f765ccc
No known key found for this signature in database
GPG Key ID: 99C970F83E86C84B

View File

@ -59,7 +59,7 @@ namespace HandBrakeWPF
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);
this.Shutdown();
@ -67,6 +67,14 @@ namespace HandBrakeWPF
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.
if (!SystemInfo.IsWindows10OrLater())
{