43 logger->
log1(
"Initializing sound database...");
55 XmlNodeConstPtrConst root = doc->
rootNode();
57 if ((root ==
nullptr) || !xmlNameEqual(root,
"sounds"))
65 if (xmlNameEqual(node,
"include"))
72 else if (xmlNameEqual(node,
"sound"))
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 log1(const char *const log_text)
#define for_each_xml_child_node(var, parent)
int getIndexBySound(const std::string &sound)
void loadXmlFile(const std::string &fileName, const SkipError skipError)
std::string & getSound(const int id)
int getProperty(const xmlNodePtr node, const char *const name, int def)
std::vector< std::string > mSounds
const bool SkipError_false
const bool SkipError_true
const bool UseVirtFs_true