VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
ConVars.cpp File Reference
#include <VoltMod/Core/Files/File.hpp>
#include <VoltMod/Core/Log.hpp>
#include <VoltMod/Core/Slots/Slot.hpp>
#include <VoltMod/Core/Text/Strings.hpp>
#include <VoltMod/Engine/ConVars/ConVar.hpp>
#include <VoltMod/Engine/Interfaces.hpp>
#include <engine2/igameeventsystem.h>
#include <format>
#include <icvar.h>
#include <networkbasetypes.pb.h>
#include <networksystem/inetworkmessages.h>
#include <recipientfilter.h>
#include <string>
#include <string_view>
#include <tier0/convar.h>

Go to the source code of this file.

Namespaces

namespace  VoltMod

Functions

static std::string_view Text (const char *value)
static void GlobalConVarChangeCallback (ConVarRefAbstract *ref, CSplitScreenSlot, const char *newValue, const char *oldValue, ConVarUserInfoSet_t *)

Variables

static VoltMod::ConVars * g_changeCallback = nullptr

Function Documentation

◆ GlobalConVarChangeCallback()

void GlobalConVarChangeCallback ( ConVarRefAbstract * ref,
CSplitScreenSlot ,
const char * newValue,
const char * oldValue,
ConVarUserInfoSet_t *  )
static

Definition at line 26 of file ConVars.cpp.

References g_changeCallback, and Text().

◆ Text()

std::string_view Text ( const char * value)
static

Definition at line 21 of file ConVars.cpp.

Referenced by GlobalConVarChangeCallback().

Variable Documentation

◆ g_changeCallback

VoltMod::ConVars* g_changeCallback = nullptr
static

Definition at line 19 of file ConVars.cpp.

Referenced by GlobalConVarChangeCallback().