summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.h
diff options
context:
space:
mode:
authorEric Scrivner <zenogais@gmail.com>2005-03-12 18:06:53 +0000
committerEric Scrivner <zenogais@gmail.com>2005-03-12 18:06:53 +0000
commitd0c5ab3fe88e1248f755a764248037960f7bed35 (patch)
tree7e43cfe622c20b704e7bccfd88e26aa3a79bb826 /src/resources/resourcemanager.h
parent3a0e16802b9838ad77d96276bfaa213d8285b76e (diff)
downloadmana-client-d0c5ab3fe88e1248f755a764248037960f7bed35.tar.gz
mana-client-d0c5ab3fe88e1248f755a764248037960f7bed35.tar.bz2
mana-client-d0c5ab3fe88e1248f755a764248037960f7bed35.tar.xz
mana-client-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.h11
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;
};