diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-05-12 01:02:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-05-12 01:02:51 +0300 |
commit | 07c62ac076c698cb7d6a4f8ceed616d982421f14 (patch) | |
tree | fe5b5b2115f1287608dd6c6a0850d36fd7760c12 /src/resources/db/badgesdb.cpp | |
parent | d5a00a320043f5782ebc489285c89943b667e094 (diff) | |
download | plus-07c62ac076c698cb7d6a4f8ceed616d982421f14.tar.gz plus-07c62ac076c698cb7d6a4f8ceed616d982421f14.tar.bz2 plus-07c62ac076c698cb7d6a4f8ceed616d982421f14.tar.xz plus-07c62ac076c698cb7d6a4f8ceed616d982421f14.zip |
Add skipError parameter into xmlutils.
Diffstat (limited to 'src/resources/db/badgesdb.cpp')
-rw-r--r-- | src/resources/db/badgesdb.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/resources/db/badgesdb.cpp b/src/resources/db/badgesdb.cpp index 059a22112..6ee66f180 100644 --- a/src/resources/db/badgesdb.cpp +++ b/src/resources/db/badgesdb.cpp @@ -37,7 +37,8 @@ namespace static void loadXmlFile(const std::string &file, const std::string &name, - BadgesInfos &arr) + BadgesInfos &arr, + const SkipError skipError) { readXmlStringMap(file, "badges", @@ -45,21 +46,22 @@ static void loadXmlFile(const std::string &file, "badge", "name", "image", - arr); + arr, + skipError); } static void loadDB(const std::string &name, BadgesInfos &arr) { loadXmlFile(paths.getStringValue("badgesFile"), - name, arr); + name, arr, SkipError_false); loadXmlFile(paths.getStringValue("badgesPatchFile"), - name, arr); + name, arr, SkipError_true); StringVect listVect; Files::getFilesInDir(paths.getStringValue( "badgesPatchDir"), listVect, ".xml"); FOR_EACH (StringVectCIter, itVect, listVect) - loadXmlFile(*itVect, name, arr); + loadXmlFile(*itVect, name, arr, SkipError_true); } void BadgesDB::load() |