Merge pull request #3150 from kthchew/fix/unneeded-hr-exceptions

Remove unnecessary hardened runtime exceptions on macOS
This commit is contained in:
Alexandru Ionut Tripon
2024-12-14 19:30:11 +02:00
committed by GitHub
4 changed files with 22 additions and 5 deletions

View File

@@ -594,6 +594,13 @@ QMap<QString, QString> MinecraftInstance::getVariables()
out.insert("INST_JAVA", settings()->get("JavaPath").toString());
out.insert("INST_JAVA_ARGS", javaArguments().join(' '));
out.insert("NO_COLOR", "1");
#ifdef Q_OS_MACOS
// get library for Steam overlay support
QString steamDyldInsertLibraries = qEnvironmentVariable("STEAM_DYLD_INSERT_LIBRARIES");
if (!steamDyldInsertLibraries.isEmpty()) {
out.insert("DYLD_INSERT_LIBRARIES", steamDyldInsertLibraries);
}
#endif
return out;
}