summaryrefslogtreecommitdiff
path: root/src/resourcemanager.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-01-05 20:12:51 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-01-05 20:12:51 +0000
commit593e65eef0d43f2ff61dc1b4f3160c0a16b5f015 (patch)
tree8e0a1ca0c73778f0e4d71f4da4d5c47f272915b9 /src/resourcemanager.cpp
parentf96ca90ba90da3175be96ff7ed34efb78ea5dfed (diff)
downloadmanaserv-593e65eef0d43f2ff61dc1b4f3160c0a16b5f015.tar.gz
manaserv-593e65eef0d43f2ff61dc1b4f3160c0a16b5f015.tar.bz2
manaserv-593e65eef0d43f2ff61dc1b4f3160c0a16b5f015.tar.xz
manaserv-593e65eef0d43f2ff61dc1b4f3160c0a16b5f015.zip
Simplified handling of verbosity levels. Optimized code by generating only needed messages.
Diffstat (limited to 'src/resourcemanager.cpp')
-rw-r--r--src/resourcemanager.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/resourcemanager.cpp b/src/resourcemanager.cpp
index 0ddf5931..fc62299a 100644
--- a/src/resourcemanager.cpp
+++ b/src/resourcemanager.cpp
@@ -91,7 +91,7 @@ ResourceManager::searchAndAddZipFiles()
std::string filePath = std::string("data/") +
std::string(findFileInfo.name);
- LOG_INFO("Adding to PhysicsFS: " << findFileInfo.name, 0);
+ LOG_INFO("Adding to PhysicsFS: " << findFileInfo.name);
// Add the zip file to our PhysicsFS search path
PHYSFS_addToSearchPath(filePath.c_str(), 1);
@@ -127,7 +127,7 @@ ResourceManager::searchAndAddZipFiles()
std::string filePath = std::string(programPath) +
std::string("/") + std::string(direntry->d_name);
- LOG_INFO("Adding to PhysicsFS: " << filePath, 0);
+ LOG_INFO("Adding to PhysicsFS: " << filePath);
// Add the zip file to our PhysicsFS search path
PHYSFS_addToSearchPath(filePath.c_str(), 1);
@@ -143,7 +143,7 @@ ResourceManager::loadFile(const std::string &fileName, int &fileSize)
{
// If the file doesn't exist indicate failure
if (!PHYSFS_exists(fileName.c_str())) {
- LOG_WARN("Warning: " << fileName << " not found!", 0);
+ LOG_WARN("Warning: " << fileName << " not found!");
return NULL;
}
@@ -152,7 +152,7 @@ ResourceManager::loadFile(const std::string &fileName, int &fileSize)
// If the handler is an invalid pointer indicate failure
if (file == NULL) {
- LOG_WARN("Warning: " << fileName << " failed to load!", 0);
+ LOG_WARN("Warning: " << fileName << " failed to load!");
return NULL;
}
@@ -178,7 +178,7 @@ ResourceManager::loadTextFile(const std::string &fileName)
if (!fileContents)
{
- LOG_ERROR("Couldn't load text file: " << fileName, 0);
+ LOG_ERROR("Couldn't load text file: " << fileName);
return lines;
}