summaryrefslogtreecommitdiff
path: root/src/gui/theme.cpp
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 /src/gui/theme.cpp
parentf2752fdec3661a7ffaf592747c2c65f56662a384 (diff)
downloadmanaplus-89e240d5182e4cdafd942f9eeb1fac1b95111bb8.tar.gz
manaplus-89e240d5182e4cdafd942f9eeb1fac1b95111bb8.tar.bz2
manaplus-89e240d5182e4cdafd942f9eeb1fac1b95111bb8.tar.xz
manaplus-89e240d5182e4cdafd942f9eeb1fac1b95111bb8.zip
Dont report errors on resolving theme image path.
Diffstat (limited to 'src/gui/theme.cpp')
-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();