57 XmlNodeConstPtrConst rootNode = doc.
rootNode();
59 if ((rootNode ==
nullptr) || !xmlNameEqual(rootNode,
"mods"))
61 logger->
log(
"Mods Database: Error while loading %s!",
68 if (xmlNameEqual(modNode,
"include"))
76 if (!xmlNameEqual(modNode,
"mod"))
81 modNode,
"name",
_(
"unnamed"));
85 if (currentInfo ==
nullptr)
90 modNode,
"description",
""));
92 modNode,
"help",
""));
94 modNode,
"localdir",
""));
static void loadXmlFile(const std::string &file, const std::string &name, BadgesInfos &arr, const SkipError skipError)
#define loadXmlDir(name, function)
std::string getStringValue(const std::string &key) const
void log(const char *const log_text,...)
void log1(const char *const log_text)
void setDescription(const std::string &text)
void setLocalDir(const std::string &text)
void setName(const std::string &name)
void setHelp(const std::string &text)
void delete_all(Container &c)
#define for_each_xml_child_node(var, parent)
std::map< std::string, ModInfo * > ModInfos
ModInfos::iterator ModInfoIterator
ModInfo * get(const std::string &name)
void loadXmlFile(const std::string &fileName, const SkipError skipError)
const ModInfos & getAll()
std::string langProperty(const xmlNodePtr node, const char *const name, const std::string &def)
int getProperty(const xmlNodePtr node, const char *const name, int def)
const bool SkipError_false
const bool SkipError_true
const bool UseVirtFs_true