MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / SetConfig

Method SetConfig

ResourceCompiler/CfgFile.cpp:274–284  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

272
273//////////////////////////////////////////////////////////////////////////
274bool CfgFile::SetConfig( const char *section, IConfig *config )
275{
276 Section *sec = FindSection( section ); assert(sec);
277
278 for (std::list<Entry>::iterator it = sec->entries.begin(); it != sec->entries.end(); ++it)
279 {
280 if(!(*it).IsComment())
281 config->Set( (*it).key.GetString(),(*it).value.GetString() );
282 }
283 return true;
284}

Callers 3

SetPresetSettingsMethod · 0.80
CompileFileMethod · 0.80
mainFunction · 0.80

Calls 5

IsCommentMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
SetMethod · 0.45
GetStringMethod · 0.45

Tested by

no test coverage detected