fix nvidia startup errors on arm64 (#2505)

This commit is contained in:
Jason Dove
2025-10-09 21:26:27 -05:00
committed by GitHub
parent 6847a133ca
commit dba5485300
2 changed files with 11 additions and 1 deletions

View File

@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Fixed
- Fix NVIDIA startup errors on arm64
## [25.7.1] - 2025-10-09
### Added
@@ -22,6 +24,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Changed
- Use table instead of tree view on blocks page
- Use different release packaging system to workaround false positive from Windows Defender
## [25.7.0] - 2025-10-03
### Added

View File

@@ -7,7 +7,14 @@ public static class NvEncSharpRedirector
{
static NvEncSharpRedirector()
{
NativeLibrary.SetDllImportResolver(typeof(Lennox.NvEncSharp.LibCuda).Assembly, Resolver);
try
{
NativeLibrary.SetDllImportResolver(typeof(Lennox.NvEncSharp.LibCuda).Assembly, Resolver);
}
catch (DllNotFoundException)
{
// do nothing
}
}
private static IntPtr Resolver(string libraryName, Assembly assembly, DllImportSearchPath? searchPath)