From 38eb3c5dfae6fbfbbc6427e99e6b56a879446105 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Wed, 27 Apr 2022 11:45:09 -0400 Subject: [PATCH] When using XIV on Mac's Wine, append the proper MoltenVK directories They pack their own version of MoltenVK, alongside some special env vars that need to be set for their version of DXVK to work properly over it. --- src/launchercore.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/launchercore.cpp b/src/launchercore.cpp index 50d3ad4..9c9ad77 100755 --- a/src/launchercore.cpp +++ b/src/launchercore.cpp @@ -267,9 +267,14 @@ void LauncherCore::launchExecutable(const ProfileSettings& profile, QProcess* pr // XIV on Mac bundle their own Wine install directory, complete with libs etc if(profile.wineType == WineType::XIVOnMac) { // TODO: don't hardcode this - QString xivLibPath = "/Applications/XIV on Mac.app/Contents/Resources/wine/lib"; + QString xivLibPath = "/Applications/XIV on Mac.app/Contents/Resources/wine/lib:/Applications/XIV on Mac.app/Contents/Resources/MoltenVK/modern"; env.insert("DYLD_FALLBACK_LIBRARY_PATH", xivLibPath); + env.insert("DYLD_VERSIONED_LIBRARY_PATH", xivLibPath); + env.insert("MVK_CONFIG_FULL_IMAGE_VIEW_SWIZZLE", "1"); + env.insert("MVK_CONFIG_RESUME_LOST_DEVICE", "1"); + env.insert("MVK_ALLOW_METAL_FENCES", "1"); + env.insert("MVK_CONFIG_USE_METAL_ARGUMENT_BUFFERS", "1"); } #if defined(FLATPAK)