diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-08-25 17:35:44 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-08-25 17:35:44 +0000 |
commit | 529ba0581833b05921d8dc3336b02a3c6abd511a (patch) | |
tree | 0fe12ba22ffef75d2e0ab5729fa86dd48bbbf20b /src/resources/resourcemanager.cpp | |
parent | 9c5199501633ba0e032035a20ef7b9b8e09585cd (diff) | |
download | mana-529ba0581833b05921d8dc3336b02a3c6abd511a.tar.gz mana-529ba0581833b05921d8dc3336b02a3c6abd511a.tar.bz2 mana-529ba0581833b05921d8dc3336b02a3c6abd511a.tar.xz mana-529ba0581833b05921d8dc3336b02a3c6abd511a.zip |
Fixed line length in ChangeLog and some other small changes.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r-- | src/resources/resourcemanager.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp index 8f26cf5c..b443c715 100644 --- a/src/resources/resourcemanager.cpp +++ b/src/resources/resourcemanager.cpp @@ -26,11 +26,6 @@ #include <cassert> #include <physfs.h> -#ifdef WIN32 -#include <io.h> -#include <direct.h> -#endif - #include "image.h" #include "music.h" #include "soundeffect.h" @@ -83,10 +78,12 @@ void ResourceManager::searchAndAddArchives( const char *dirSep = PHYSFS_getDirSeparator(); char **list = PHYSFS_enumerateFiles(path.c_str()); - for (char **i = list; *i != NULL; i++) { + for (char **i = list; *i != NULL; i++) + { size_t len = strlen(*i); - if (len > ext.length() && !ext.compare((*i)+(len - ext.length()))) { + if (len > ext.length() && !ext.compare((*i)+(len - ext.length()))) + { std::string file, realPath, archive; file = path + "/" + (*i); @@ -245,7 +242,7 @@ ResourceManager::loadFile(const std::string &fileName, int &fileSize) } // Attempt to open the specified file using PhysicsFS - PHYSFS_file* file = PHYSFS_openRead(fileName.c_str()); + PHYSFS_file *file = PHYSFS_openRead(fileName.c_str()); // If the handler is an invalid pointer indicate failure if (file == NULL) { |