MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / loadFiles

Method loadFiles

src/Ruleset/Ruleset.cpp:503–511  ·  view source on GitHub ↗

* Loads the contents of all the rule files in the given directory. * @param dirname The name of an existing directory containing rule files. */

Source from the content-addressed store, hash-verified

501 * @param dirname The name of an existing directory containing rule files.
502 */
503void Ruleset::loadFiles(const std::string &dirname)
504{
505 std::vector<std::string> names = CrossPlatform::getFolderContents(dirname, "rul");
506
507 for (std::vector<std::string>::iterator i = names.begin(); i != names.end(); ++i)
508 {
509 loadFile(dirname + *i);
510 }
511}
512
513/**
514 * Loads a rule element, adding/removing from vectors as necessary.

Callers

nothing calls this directly

Calls 1

getFolderContentsFunction · 0.85

Tested by

no test coverage detected