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

Method SetReadOnly

src/engine/shared/config.cpp:348–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348void CConfigManager::SetReadOnly(const char *pScriptName, bool ReadOnly)
349{
350 for(SConfigVariable *pVariable : m_vpAllVariables)
351 {
352 if(str_comp(pScriptName, pVariable->m_pScriptName) == 0)
353 {
354 pVariable->m_ReadOnly = ReadOnly;
355 return;
356 }
357 }
358 dbg_assert_failed("Invalid command for SetReadOnly: '%s'", pScriptName);
359}
360
361void CConfigManager::SetGameSettingsReadOnly(bool ReadOnly)
362{

Callers 1

mainFunction · 0.80

Calls 1

str_compFunction · 0.85

Tested by

no test coverage detected