mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-21 20:27:45 +00:00
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.
This commit is contained in:
parent
bcab12cf5f
commit
38eb3c5dfa
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue