Add FILESYSTEM_loadAssetToMemory()

This is currently just a wrapper around FILESYSTEM_loadFileToMemory(),
but assets are supposed to use this function instead of the regular one.
This commit is contained in:
Misa authored and Ethan Lee committed 2021-04-05 16:39:37 -04:00
1 parent aea5611e5b
commit 72ae6921ea
2 files changed
+19

No files matched your search

+6
View File
@@ -22,6 +22,12 @@ bool FILESYSTEM_isAssetMounted(const char* filename);
void FILESYSTEM_loadFileToMemory(const char *name, unsigned char **mem,
size_t *len, bool addnull);
void FILESYSTEM_loadAssetToMemory(
const char* name,
unsigned char** mem,
size_t* len,
const bool addnull
);
void FILESYSTEM_freeMemory(unsigned char **mem);
bool FILESYSTEM_saveTiXml2Document(const char *name, tinyxml2::XMLDocument& doc);
bool FILESYSTEM_loadTiXml2Document(const char *name, tinyxml2::XMLDocument& doc);