summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-13 03:35:17 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-13 03:35:17 +0300
commit89e240d5182e4cdafd942f9eeb1fac1b95111bb8 (patch)
tree1c5deaa1d06f85fefdf1359f90393b5e95f2b568
parentf2752fdec3661a7ffaf592747c2c65f56662a384 (diff)
downloadmanaverse-89e240d5182e4cdafd942f9eeb1fac1b95111bb8.tar.gz
manaverse-89e240d5182e4cdafd942f9eeb1fac1b95111bb8.tar.bz2
manaverse-89e240d5182e4cdafd942f9eeb1fac1b95111bb8.tar.xz
manaverse-89e240d5182e4cdafd942f9eeb1fac1b95111bb8.zip
Dont report errors on resolving theme image path.
-rw-r--r--src/gui/theme.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index f36a45579..516fb6402 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -387,9 +387,10 @@ Skin *Theme::readSkin(const std::string &filename, const bool full)
if (filename.empty())
return nullptr;
-// logger->log("Loading skin '%s'.", filename.c_str());
-
- XML::Document doc(resolveThemePath(filename),
+ const std::string path = resolveThemePath(filename);
+ if (!PhysFs::exists(path.c_str()))
+ return nullptr;
+ XML::Document doc(path,
UseResman_true,
SkipError_true);
const XmlNodePtr rootNode = doc.rootNode();