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

+13
View File
@@ -441,6 +441,19 @@ void FILESYSTEM_loadFileToMemory(
PHYSFS_close(handle);
}
void FILESYSTEM_loadAssetToMemory(
const char* name,
unsigned char** mem,
size_t* len,
const bool addnull
) {
const char* path;
path = name;
FILESYSTEM_loadFileToMemory(path, mem, len, addnull);
}
void FILESYSTEM_freeMemory(unsigned char **mem)
{
SDL_free(*mem);