MCPcopy Create free account
hub / github.com/ddnet/ddnet / CheckReadOnly

Method CheckReadOnly

src/engine/shared/config.cpp:28–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28bool SConfigVariable::CheckReadOnly() const
29{
30 if(!m_ReadOnly)
31 return false;
32 char aBuf[IConsole::CMDLINE_LENGTH + 64];
33 str_format(aBuf, sizeof(aBuf), "The config variable '%s' cannot be changed right now.", m_pScriptName);
34 m_pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "config", aBuf);
35 return true;
36}
37
38// -----
39

Callers 1

CommandCallbackMethod · 0.80

Calls 2

str_formatFunction · 0.85
PrintMethod · 0.45

Tested by

no test coverage detected