MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / loadSettingsFile

Function loadSettingsFile

test/Settings.cpp:216–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216inline std::string loadSettingsFile(const IApplicationContext& context, const std::string& applicationVersion, const std::string& relativeFilePath)
217{
218 settings::SettingsManager manager(context, applicationVersion);
219 auto existingFile = manager.getExistingSettingsFile(relativeFilePath);
220
221 if (existingFile.empty()) return {};
222
223 return algorithm::loadFileToString(existingFile);
224}
225
226// Checks that the version/base settings folders are respecting the version sort order
227TEST(SettingsManagerTest, SettingsFileVersionPrecedence)

Callers 1

TESTFunction · 0.85

Calls 3

loadFileToStringFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected