diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-11-05 14:20:53 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-11-05 14:20:53 +0000 |
commit | dbca3013575b766a681d1cea946e249a386e2144 (patch) | |
tree | 243cff9c2afc3469514754b48edce6d91c70d5e8 /src | |
parent | 4b8186327de88254d50a59eba0867d9a8590aaf2 (diff) | |
download | mana-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.cpp | 8 |
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); |