1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-26 06:28:30 +02: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);