diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-02 13:45:08 +0200 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-15 10:51:21 +0200 |
commit | 83aa0062c7d831ca42ed4d82e5f6162ac8793be8 (patch) | |
tree | 1a1380ce8a8be27876a47eb6fafa1acd3f8d0a69 /launcher/Application.cpp | |
parent | ff67fd10c33fa99423b5a43dcbd30494b4c40dc5 (diff) | |
download | PrismLauncher-83aa0062c7d831ca42ed4d82e5f6162ac8793be8.tar.gz PrismLauncher-83aa0062c7d831ca42ed4d82e5f6162ac8793be8.tar.bz2 PrismLauncher-83aa0062c7d831ca42ed4d82e5f6162ac8793be8.zip |
feat: add custom native library path settings
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/Application.cpp')
-rw-r--r-- | launcher/Application.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp index a1393510..6daa5a84 100644 --- a/launcher/Application.cpp +++ b/launcher/Application.cpp @@ -582,7 +582,9 @@ Application::Application(int& argc, char** argv) : QApplication(argc, argv) // Native library workarounds m_settings->registerSetting("UseNativeOpenAL", false); + m_settings->registerSetting("CustomOpenALPath", ""); m_settings->registerSetting("UseNativeGLFW", false); + m_settings->registerSetting("CustomGLFWPath", ""); // Peformance related options m_settings->registerSetting("EnableFeralGamemode", false); @@ -842,6 +844,8 @@ Application::Application(int& argc, char** argv) : QApplication(argc, argv) updateCapabilities(); + detectLibraries(); + if (createSetupWizard()) { return; } @@ -1412,6 +1416,15 @@ void Application::updateCapabilities() #endif } +void Application::detectLibraries() +{ +#ifdef Q_OS_LINUX + m_detectedGLFWPath = MangoHud::findLibrary(BuildConfig.GLFW_LIBRARY_NAME); + m_detectedOpenALPath = MangoHud::findLibrary(BuildConfig.OPENAL_LIBRARY_NAME); + qDebug() << m_detectedGLFWPath << m_detectedOpenALPath; +#endif +} + QString Application::getJarPath(QString jarFile) { QStringList potentialPaths = { |