MCPcopy Create free account
hub / github.com/ElyPrismLauncher/Launcher / getUserAgent

Method getUserAgent

launcher/Application.cpp:1930–1938  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1928}
1929
1930QString Application::getUserAgent()
1931{
1932 QString uaOverride = m_settings->get("UserAgentOverride").toString();
1933 if (!uaOverride.isEmpty()) {
1934 return uaOverride.replace("$LAUNCHER_VER", BuildConfig.printableVersionString());
1935 }
1936
1937 return BuildConfig.USER_AGENT;
1938}
1939
1940bool Application::handleDataMigration(const QString& currentData,
1941 const QString& oldData,

Callers 1

executeTaskMethod · 0.80

Calls 4

toStringMethod · 0.45
getMethod · 0.45
isEmptyMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected