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) <[email protected]>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-09-25 09:06:56 -06:00
1 parent 23ba2f62f8
commit 1a3addf0cb
1 file changed
+5
+5
View File
@@ -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__)