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:
parent
3f46c5ac5c
commit
a4999c5308
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue