ManaPlus
Functions
UserAgent Namespace Reference

Functions

void update ()
 

Function Documentation

◆ update()

void UserAgent::update ( )

Definition at line 32 of file useragent.cpp.

33 {
34  std::string renderName;
35  if (mainGraphics != nullptr)
36  renderName = mainGraphics->getName();
37  else
38  renderName = "unknown";
39 
41  branding.getStringValue("appName").c_str(),
42  renderName.c_str());
43 }
std::string getStringValue(const std::string &key) const
const std::string & getName() const
Definition: graphics.h:314
std::string userAgent
Definition: settings.h:128
Configuration branding
Graphics * mainGraphics
Definition: graphics.cpp:109
#define PACKAGE_EXTENDED_VERSION
Definition: main.h:161
Settings settings
Definition: settings.cpp:32
std::string strprintf(const char *const format,...)

References branding, Graphics::getName(), Configuration::getStringValue(), mainGraphics, PACKAGE_EXTENDED_VERSION, settings, strprintf(), and Settings::userAgent.

Referenced by Window::draw(), Settings::init(), InputManager::makeDefault(), and InputManager::setNewKey().