SuperTuxKart
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
UserConfig Class Reference

Class for managing general STK user configuration data. More...

#include <user_config.hpp>

Inheritance diagram for UserConfig:
Inheritance graph
[legend]

Public Member Functions

 UserConfig ()
 Create the user config object; does not actually load it, UserConfig::loadConfig needs to be called. More...
 
bool loadConfig ()
 Load configuration values from file. More...
 
void saveConfig ()
 Write settings to config file. More...
 
const irr::core::stringw & getWarning ()
 
void resetWarning ()
 
void setWarning (irr::core::stringw &warning)
 

Private Attributes

std::string m_filename
 Filename of the user config file. More...
 
irr::core::stringw m_warning
 

Static Private Attributes

static const int m_current_config_version = 8
 

Detailed Description

Class for managing general STK user configuration data.

Constructor & Destructor Documentation

◆ UserConfig()

UserConfig::UserConfig ( )

Create the user config object; does not actually load it, UserConfig::loadConfig needs to be called.

Member Function Documentation

◆ loadConfig()

bool UserConfig::loadConfig ( )

Load configuration values from file.

◆ saveConfig()

void UserConfig::saveConfig ( )

Write settings to config file.

Member Data Documentation

◆ m_filename

std::string UserConfig::m_filename
private

Filename of the user config file.


The documentation for this class was generated from the following files: