From aafc916bb66250da7df8a45f3f04cd2fded9efa8 Mon Sep 17 00:00:00 2001 From: bicarus-dev <202771338+bicarus-dev@users.noreply.github.com> Date: Sat, 24 May 2025 12:49:58 -0700 Subject: [PATCH] launcher: detect custom nvidia DLLs (#329) ## Link to GitHub Issue, if one exists n/a ## Description of change Complain if nvcuda.dll, nvcuvid.dll, or nvEncodeAPI64.dll are found in modules or in root directory. This would complain for spice-provided stubs as well. ## Testing --- src/spice2x/launcher/launcher.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/spice2x/launcher/launcher.cpp b/src/spice2x/launcher/launcher.cpp index a8d9f2b..4c04303 100644 --- a/src/spice2x/launcher/launcher.cpp +++ b/src/spice2x/launcher/launcher.cpp @@ -1912,6 +1912,9 @@ int main_implementation(int argc, char *argv[]) { libutils::warn_if_dll_exists("d3d12.dll"); libutils::warn_if_dll_exists("dxgi.dll"); libutils::warn_if_dll_exists("opengl32.dll"); + libutils::warn_if_dll_exists("nvcuda.dll"); + libutils::warn_if_dll_exists("nvcuvid.dll"); + libutils::warn_if_dll_exists("nvEncodeAPI64.dll"); // complain loudly & early about dll load ordering issue libutils::check_duplicate_dlls();