diff options
author | Eric Scrivner <zenogais@gmail.com> | 2005-03-12 18:06:53 +0000 |
---|---|---|
committer | Eric Scrivner <zenogais@gmail.com> | 2005-03-12 18:06:53 +0000 |
commit | d0c5ab3fe88e1248f755a764248037960f7bed35 (patch) | |
tree | 7e43cfe622c20b704e7bccfd88e26aa3a79bb826 /src/resources/resourcemanager.h | |
parent | 3a0e16802b9838ad77d96276bfaa213d8285b76e (diff) | |
download | mana-d0c5ab3fe88e1248f755a764248037960f7bed35.tar.gz mana-d0c5ab3fe88e1248f755a764248037960f7bed35.tar.bz2 mana-d0c5ab3fe88e1248f755a764248037960f7bed35.tar.xz mana-d0c5ab3fe88e1248f755a764248037960f7bed35.zip |
Made PhysFS code a bit more generic for later additions.
Diffstat (limited to 'src/resources/resourcemanager.h')
-rw-r--r-- | src/resources/resourcemanager.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/resources/resourcemanager.h b/src/resources/resourcemanager.h index 961c000a..ce28bc78 100644 --- a/src/resources/resourcemanager.h +++ b/src/resources/resourcemanager.h @@ -108,6 +108,17 @@ class ResourceManager */ void searchAndAddZipFiles(); + /** + * Allocates data into a buffer pointer for raw data loading + * + * @param fileName The name of the file to be loaded + * @param buffer The empty buffer into which the data will be loaded + * + * @return The size of the file that was loaded + */ + int loadFile(const std::string& fileName, void* buffer); + + static ResourceManager *instance; std::map<std::string, ResourceEntry> resources; }; |