1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00

Fix music files not using virtual mount path

This fixes music files being unable to be mounted in per-level custom
assets, because they didn't use the virtual mount path. But now they do.
This commit is contained in:
Misa 2021-04-13 00:38:03 -07:00 committed by Ethan Lee
parent 3f46c5ac5c
commit a4999c5308

View file

@ -540,13 +540,16 @@ bool FILESYSTEM_loadBinaryBlob(binaryBlob* blob, const char* filename)
PHYSFS_File* handle;
int offset;
size_t i;
char path[MAX_PATH];
if (blob == NULL || filename == NULL)
{
return false;
}
handle = PHYSFS_openRead(filename);
getMountedPath(path, sizeof(path), filename);
handle = PHYSFS_openRead(path);
if (handle == NULL)
{
printf("Unable to open file %s\n", filename);