Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
quicktune.cpp File Reference
#include "quicktune.h"
#include "threading/mutex_auto_lock.h"
#include "util/string.h"
+ Include dependency graph for quicktune.cpp:

Functions

const std::vector< std::string > & getQuicktuneNames ()
 
QuicktuneValue getQuicktuneValue (const std::string &name)
 
void setQuicktuneValue (const std::string &name, const QuicktuneValue &val)
 
void updateQuicktuneValue (const std::string &name, QuicktuneValue &val)
 

Variables

static std::map< std::string, QuicktuneValueg_values
 
static std::vector< std::string > g_names
 
static std::mutex g_mutex
 

Function Documentation

◆ getQuicktuneNames()

const std::vector< std::string > & getQuicktuneNames ( )

References g_names.

Referenced by QuicktuneShortcutter::next(), QuicktuneShortcutter::prev(), and print_modified_quicktune_values().

+ Here is the caller graph for this function:

◆ getQuicktuneValue()

QuicktuneValue getQuicktuneValue ( const std::string &  name)

References g_mutex, g_values, QVT_NONE, and QuicktuneValue::type.

Referenced by QuicktuneShortcutter::dec(), QuicktuneShortcutter::inc(), and print_modified_quicktune_values().

+ Here is the caller graph for this function:

◆ setQuicktuneValue()

void setQuicktuneValue ( const std::string &  name,
const QuicktuneValue val 
)

References g_mutex, and g_values.

Referenced by QuicktuneShortcutter::dec(), and QuicktuneShortcutter::inc().

+ Here is the caller graph for this function:

◆ updateQuicktuneValue()

void updateQuicktuneValue ( const std::string &  name,
QuicktuneValue val 
)

Variable Documentation

◆ g_mutex

std::mutex g_mutex
static

◆ g_names

std::vector<std::string> g_names
static

◆ g_values

std::map<std::string, QuicktuneValue> g_values
static