From d5a00a320043f5782ebc489285c89943b667e094 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 12 May 2016 00:18:57 +0300 Subject: Add skipError parameter to loadXml functions. This allow not show errors for some not main xml files. --- src/resources/db/moddb.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/resources/db/moddb.h') diff --git a/src/resources/db/moddb.h b/src/resources/db/moddb.h index cbf6e2a0c..66488c691 100644 --- a/src/resources/db/moddb.h +++ b/src/resources/db/moddb.h @@ -23,6 +23,8 @@ #ifndef RESOURCES_DB_MODDB_H #define RESOURCES_DB_MODDB_H +#include "enums/simpletypes/skiperror.h" + #include "resources/modinfo.h" #include "localconsts.h" @@ -37,7 +39,8 @@ namespace ModDB ModInfo *get(const std::string &name) A_WARN_UNUSED; - void loadXmlFile(const std::string &fileName); + void loadXmlFile(const std::string &fileName, + const SkipError skipError); const ModInfos &getAll(); } // namespace ModDB -- cgit v1.2.3-60-g2f50