From ae70ae002eb3b28b84ed9027a6e1d20985f6a087 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 19 Jan 2017 00:45:39 +0300 Subject: Add physfs reporting errors on error loading images. --- src/resources/atlas/atlasmanager.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/resources/atlas') 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") -- cgit v1.2.3-70-g09d2