diff options
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; }; |