MCPcopy Create free account
hub / github.com/OpenMW/openmw / writeProfiles

Function writeProfiles

components/config/launchersettings.cpp:197–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195 }
196
197 void writeProfiles(const LauncherSettings::Profiles& value, QTextStream& stream)
198 {
199 writeSectionHeader(sProfilesSection, stream);
200 writeKeyValue(sCurrentProfileKey, value.mCurrentProfile, stream);
201 for (auto it = value.mValues.rbegin(); it != value.mValues.rend(); ++it)
202 {
203 writeKeyValues(it->first, sArchiveKey, it->second.mArchives, stream);
204 writeKeyValues(it->first, sDataKey, it->second.mData, stream);
205 writeKeyValues(it->first, sContentKey, it->second.mContent, stream);
206 }
207 }
208
209 void writeGeneral(const LauncherSettings::General& value, QTextStream& stream)
210 {

Callers 1

writeFileMethod · 0.85

Calls 5

writeSectionHeaderFunction · 0.85
writeKeyValueFunction · 0.85
writeKeyValuesFunction · 0.85
rbeginMethod · 0.45
rendMethod · 0.45

Tested by

no test coverage detected