MCPcopy Create free account
hub / github.com/ZDoom/Raze / D_AddConfigFiles

Function D_AddConfigFiles

source/common/utility/findfile.cpp:167–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165//==========================================================================
166
167void D_AddConfigFiles(std::vector<std::string>& wadfiles, const char* section, const char* extension, FConfigFile *config)
168{
169 if (config && config->SetSection(section))
170 {
171 const char* key;
172 const char* value;
173 FConfigFile::Position pos;
174
175 while (config->NextInSection(key, value))
176 {
177 if (stricmp(key, "Path") == 0)
178 {
179 // D_AddWildFile resets config's position, so remember it
180 config->GetPosition(pos);
181 D_AddWildFile(wadfiles, ExpandEnvVars(value).GetChars(), extension, config);
182 // Reset config's position to get next wad
183 config->SetPosition(pos);
184 }
185 }
186 }
187}
188
189//==========================================================================
190//

Callers 1

InitFileSystemFunction · 0.85

Calls 8

stricmpFunction · 0.85
D_AddWildFileFunction · 0.85
ExpandEnvVarsFunction · 0.85
SetSectionMethod · 0.80
NextInSectionMethod · 0.80
GetPositionMethod · 0.45
GetCharsMethod · 0.45
SetPositionMethod · 0.45

Tested by

no test coverage detected