Use PHYSFS_readBytes instead of deprecated PHYSFS_read

This commit is contained in:
Marvin Scholz authored and Ethan Lee committed 2020-01-10 18:41:22 -05:00
1 parent 5c9c7297ed
commit 06c6de9433
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -124,7 +124,7 @@ void FILESYSTEM_loadFileToMemory(const char *name, unsigned char **mem, size_t *
*len = length;
}
*mem = (unsigned char*) malloc(length);
PHYSFS_read(handle, *mem, 1, length);
PHYSFS_readBytes(handle, *mem, length);
PHYSFS_close(handle);
}