summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-11-05 14:20:53 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-11-05 14:20:53 +0000
commitdbca3013575b766a681d1cea946e249a386e2144 (patch)
tree243cff9c2afc3469514754b48edce6d91c70d5e8 /src
parent4b8186327de88254d50a59eba0867d9a8590aaf2 (diff)
downloadmana-dbca3013575b766a681d1cea946e249a386e2144.tar.gz
mana-dbca3013575b766a681d1cea946e249a386e2144.tar.bz2
mana-dbca3013575b766a681d1cea946e249a386e2144.tar.xz
mana-dbca3013575b766a681d1cea946e249a386e2144.zip
Reverted wallpaper and added more useful logging to ResourceManager.
Diffstat (limited to 'src')
-rw-r--r--src/resources/resourcemanager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 1c1eb5db..e729ecfc 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -119,13 +119,9 @@ ResourceManager::get(const E_RESOURCE_TYPE &type, const std::string &idPath)
return resIter->second;
}
- logger->log("ResourceManager::get(%s)", idPath.c_str());
-
int fileSize;
void *buffer = loadFile(idPath, fileSize);
-
if (!buffer) {
- logger->log("Warning: resource doesn't exist!");
return NULL;
}
@@ -262,6 +258,10 @@ ResourceManager::loadFile(const std::string &fileName, int &fileSize)
return NULL;
}
+ // Log the real dir of the file
+ logger->log("Loaded %s/%s", PHYSFS_getRealDir(fileName.c_str()),
+ fileName.c_str());
+
// Get the size of the file
fileSize = PHYSFS_fileLength(file);