mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
fix(console): fix improper printing in 'cvarlist' command
This commit is contained in:
parent
f6fba9b74c
commit
5bb6123a43
1 changed files with 1 additions and 1 deletions
|
|
@ -384,7 +384,7 @@ int32_t CvarListCommandHandler(const char* command, const char* arguments) {
|
||||||
char text2[256];
|
char text2[256];
|
||||||
|
|
||||||
for (auto cvar = CVar::s_registeredCVars.Head(); cvar != nullptr; cvar = CVar::s_registeredCVars.Next(cvar)) {
|
for (auto cvar = CVar::s_registeredCVars.Head(); cvar != nullptr; cvar = CVar::s_registeredCVars.Next(cvar)) {
|
||||||
SStrPrintf(text, sizeof(text), " \"%s\" is \"%s\"", cvar->m_key.m_str, cvar->m_stringValue);
|
SStrPrintf(text, sizeof(text), " \"%s\" is \"%s\"", cvar->m_key.m_str, cvar->m_stringValue.GetString());
|
||||||
|
|
||||||
if (cvar->m_defaultValue.GetString()) {
|
if (cvar->m_defaultValue.GetString()) {
|
||||||
if (SStrCmp(cvar->m_stringValue.GetString(), cvar->m_defaultValue.GetString(), STORM_MAX_STR)) {
|
if (SStrCmp(cvar->m_stringValue.GetString(), cvar->m_defaultValue.GetString(), STORM_MAX_STR)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue