From baff2d8d870fd89c5705959e13f31a1c7ca1be5d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 7 Sep 2017 20:46:34 +0300 Subject: Add current renderer into user agent string. --- src/settings.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/settings.cpp') diff --git a/src/settings.cpp b/src/settings.cpp index 4aa8f655e..f620237d3 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -21,7 +21,10 @@ #include "settings.h" #include "configuration.h" -#include "main.h" + +#ifndef DYECMD +#include "net/useragent.h" +#endif // DYECMD #include "debug.h" @@ -30,6 +33,7 @@ Settings settings; void Settings::init() { uselonglivesprites = config.getBoolValue("uselonglivesprites"); - userAgent = strprintf(PACKAGE_EXTENDED_VERSION, - branding.getStringValue("appName").c_str()); +#ifndef DYECMD + UserAgent::update(); +#endif // DYECMD } -- cgit v1.2.3-70-g09d2