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/itemdb.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/resources/db/itemdb.h') diff --git a/src/resources/db/itemdb.h b/src/resources/db/itemdb.h index e855c80ca..d8706ef31 100644 --- a/src/resources/db/itemdb.h +++ b/src/resources/db/itemdb.h @@ -23,6 +23,8 @@ #ifndef RESOURCES_DB_ITEMDB_H #define RESOURCES_DB_ITEMDB_H +#include "enums/simpletypes/skiperror.h" + #include "utils/stringvector.h" #include @@ -45,7 +47,9 @@ namespace ItemDB void unload(); - void loadXmlFile(const std::string &fileName, int &tagNum); + void loadXmlFile(const std::string &fileName, + int &tagNum, + const SkipError skipError); const StringVect &getTags(); -- cgit v1.2.3-60-g2f50