Some small cleanups (#4772)

This commit is contained in:
Alexandru Ionut Tripon 2026-03-18 20:29:26 +00:00 committed by GitHub
commit 04786023b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 50 additions and 112 deletions

View file

@ -130,7 +130,7 @@
#ifdef Q_OS_LINUX
#include <dlfcn.h>
#include "MangoHud.h"
#include "LibraryUtils.h"
#include "gamemode_client.h"
#endif
@ -1834,7 +1834,7 @@ void Application::updateCapabilities()
if (gamemode_query_status() >= 0)
m_capabilities |= SupportsGameMode;
if (!MangoHud::getLibraryString().isEmpty())
if (!LibraryUtils::findMangoHud().isEmpty())
m_capabilities |= SupportsMangoHud;
#endif
}
@ -1842,8 +1842,8 @@ void Application::updateCapabilities()
void Application::detectLibraries()
{
#ifdef Q_OS_LINUX
m_detectedGLFWPath = MangoHud::findLibrary(BuildConfig.GLFW_LIBRARY_NAME);
m_detectedOpenALPath = MangoHud::findLibrary(BuildConfig.OPENAL_LIBRARY_NAME);
m_detectedGLFWPath = LibraryUtils::find(BuildConfig.GLFW_LIBRARY_NAME);
m_detectedOpenALPath = LibraryUtils::find(BuildConfig.OPENAL_LIBRARY_NAME);
qDebug() << "Detected native libraries:" << m_detectedGLFWPath << m_detectedOpenALPath;
#endif
}