summaryrefslogtreecommitdiff
path: root/src/utils/xml.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-05 17:23:21 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-06 13:06:50 +0300
commit05cec243c28f50bd5ee7a167067501f7bd8db3ff (patch)
treeb3b4e97b873ebf5e082ee1092a4c33a1ebdd72b8 /src/utils/xml.h
parent25bed1bb7f7dbfa3caa0f239c63dbabd3b0bd50d (diff)
downloadManaVerse-05cec243c28f50bd5ee7a167067501f7bd8db3ff.tar.gz
ManaVerse-05cec243c28f50bd5ee7a167067501f7bd8db3ff.tar.bz2
ManaVerse-05cec243c28f50bd5ee7a167067501f7bd8db3ff.tar.xz
ManaVerse-05cec243c28f50bd5ee7a167067501f7bd8db3ff.zip
Validate xml downloads, and if failed, use another mirror.
Diffstat (limited to 'src/utils/xml.h')
-rw-r--r--src/utils/xml.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/xml.h b/src/utils/xml.h
index d8a281045..9ed433ad5 100644
--- a/src/utils/xml.h
+++ b/src/utils/xml.h
@@ -93,8 +93,14 @@ namespace XML
bool isLoaded() const
{ return mDoc != nullptr; }
+ bool isValid() const
+ { return mIsValid; }
+
+ static bool validateXml(const std::string &fileName);
+
private:
xmlDocPtr mDoc;
+ bool mIsValid;
};
/**