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

Method WriteLine

src/engine/shared/config.cpp:444–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444void CConfigManager::WriteLine(const char *pLine)
445{
446 if(!m_ConfigFile ||
447 io_write(m_ConfigFile, pLine, str_length(pLine)) != static_cast<unsigned>(str_length(pLine)) ||
448 !io_write_newline(m_ConfigFile))
449 {
450 m_Failed = true;
451 }
452}
453
454void CConfigManager::StoreUnknownCommand(const char *pCommand)
455{

Callers 5

OnConfigSaveMethod · 0.80
ConfigSaveCallbackMethod · 0.80
SaveMethod · 0.80
ConfigSaveCallbackMethod · 0.80
OnConfigSaveMethod · 0.80

Calls 3

io_writeFunction · 0.85
str_lengthFunction · 0.85
io_write_newlineFunction · 0.85

Tested by

no test coverage detected