diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-07 20:46:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-07 20:46:34 +0300 |
commit | baff2d8d870fd89c5705959e13f31a1c7ca1be5d (patch) | |
tree | bdc1b2aaa75852077514211d7945cf83cfa3e64f /src/settings.cpp | |
parent | 6996022cc1ba75263f20a02ab0bedb10fc3ef5a5 (diff) | |
download | manaverse-baff2d8d870fd89c5705959e13f31a1c7ca1be5d.tar.gz manaverse-baff2d8d870fd89c5705959e13f31a1c7ca1be5d.tar.bz2 manaverse-baff2d8d870fd89c5705959e13f31a1c7ca1be5d.tar.xz manaverse-baff2d8d870fd89c5705959e13f31a1c7ca1be5d.zip |
Add current renderer into user agent string.
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
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 } |