summaryrefslogtreecommitdiff
path: root/src/resources/atlas
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-19 00:45:39 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-19 00:45:39 +0300
commitae70ae002eb3b28b84ed9027a6e1d20985f6a087 (patch)
tree6832dab3552bb27a4376a64a84c7c24a603fdc72 /src/resources/atlas
parenta5e3bb0e1600c36da180a47c4c6a0a0b9a260a7c (diff)
downloadmv-ae70ae002eb3b28b84ed9027a6e1d20985f6a087.tar.gz
mv-ae70ae002eb3b28b84ed9027a6e1d20985f6a087.tar.bz2
mv-ae70ae002eb3b28b84ed9027a6e1d20985f6a087.tar.xz
mv-ae70ae002eb3b28b84ed9027a6e1d20985f6a087.zip
Add physfs reporting errors on error loading images.
Diffstat (limited to 'src/resources/atlas')
-rw-r--r--src/resources/atlas/atlasmanager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/atlas/atlasmanager.cpp b/src/resources/atlas/atlasmanager.cpp
index 4e9028027..90b72b4d6 100644
--- a/src/resources/atlas/atlasmanager.cpp
+++ b/src/resources/atlas/atlasmanager.cpp
@@ -166,6 +166,10 @@ void AtlasManager::loadImages(const StringVect &files,
images.push_back(image);
}
}
+ else
+ {
+ reportAlways("Physfs error: %s", PhysFs::getLastError());
+ }
delete d;
}
BLOCK_END("AtlasManager::loadImages")