MangoHud: rename to LibraryUtils

It handles more than mangohud

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2026-01-14 20:02:03 +00:00
parent 248eb13ab9
commit 327a554d42
No known key found for this signature in database
GPG key ID: 5E39D70B4C93C38E
5 changed files with 20 additions and 20 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
@ -1855,7 +1855,7 @@ void Application::updateCapabilities()
if (gamemode_query_status() >= 0)
m_capabilities |= SupportsGameMode;
if (!MangoHud::getLibraryString().isEmpty())
if (!LibraryUtils::findMangoHud().isEmpty())
m_capabilities |= SupportsMangoHud;
#endif
}
@ -1863,8 +1863,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
}