| 26 | } |
| 27 | |
| 28 | bool 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 |
no test coverage detected