diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-07-30 11:55:28 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-07-30 11:55:28 +0000 |
commit | 25d4e1e3fe393ee845c868a9e5c163de52748379 (patch) | |
tree | 62021f2521334e1e05e5a44a0e8d63ef849dc7e7 /src/resources/resourcemanager.h | |
parent | 5b6ca06022be1f78b5c39387f71a7bf6580a66bd (diff) | |
download | mana-client-25d4e1e3fe393ee845c868a9e5c163de52748379.tar.gz mana-client-25d4e1e3fe393ee845c868a9e5c163de52748379.tar.bz2 mana-client-25d4e1e3fe393ee845c868a9e5c163de52748379.tar.xz mana-client-25d4e1e3fe393ee845c868a9e5c163de52748379.zip |
Fixed check for updates directory. Moved search/write path setup from resourcemanager to main initialization.
Diffstat (limited to 'src/resources/resourcemanager.h')
-rw-r--r-- | src/resources/resourcemanager.h | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/src/resources/resourcemanager.h b/src/resources/resourcemanager.h index ac3320b6..9db8ccce 100644 --- a/src/resources/resourcemanager.h +++ b/src/resources/resourcemanager.h @@ -62,10 +62,38 @@ class ResourceManager ~ResourceManager(); /** - * Searches for zip files and adds them to the PhysicsFS search path. + * Sets the write directory + * + * @param path The path of the directory to be added. + * @return <code>true</code> on success, <code>false</code> otherwise. + */ + bool setWriteDir(const std::string &path); + + /** + * Adds a directory or archive to the search path. + */ + void addToSearchPath(const std::string &path, bool append); + + /** + * Searches for zip files and adds them to the search path. + */ + void searchAndAddArchives( + const std::string &path, const std::string &ext, bool append); + + /** + * Creates a directory in the write path + */ + bool mkdir(const std::string &path); + + /** + * Checks whether the given file or directory exists in the search path + */ + bool exists(const std::string &path); + + /** + * Checks whether the given path is a directory. */ - void ResourceManager::searchAndAddArchives( - const std::string &path, const std::string &ext, int append); + bool isDirectory(const std::string &path); /** * Creates a resource and adds it to the resource map. The idPath is |