From 1a3addf0cb5d41fef2906655eaabe2a427578764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 25 Sep 2026 09:06:56 -0600 Subject: [PATCH] Mac: Look for MoltenVK outside the app bundle too Executables outside a bundle (headless) found no Vulkan library. Also try the app bundle built next to them, the Vulkan SDK's install and Homebrew's. Co-Authored-By: Claude Opus 5.5 (1M context) --- Common/GPU/Vulkan/VulkanLoader.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Common/GPU/Vulkan/VulkanLoader.cpp b/Common/GPU/Vulkan/VulkanLoader.cpp index 5179e85976..c2e337e20d 100644 --- a/Common/GPU/Vulkan/VulkanLoader.cpp +++ b/Common/GPU/Vulkan/VulkanLoader.cpp @@ -345,6 +345,11 @@ static const char * const so_names[] = { #elif PPSSPP_PLATFORM(MAC) "@executable_path/../Frameworks/libMoltenVK.dylib", "MoltenVK", + // For executables outside a bundle (headless): the app bundle built next to it, the Vulkan SDK's + // install (dlopen looks in /usr/local/lib), and Homebrew's. + "@executable_path/PPSSPPSDL.app/Contents/Frameworks/libMoltenVK.dylib", + "libMoltenVK.dylib", + "/opt/homebrew/lib/libMoltenVK.dylib", #else "libvulkan.so", #if !defined(__ANDROID__)