From a4999c5308d508782b52f9346b8e10fceaceee8e Mon Sep 17 00:00:00 2001 From: Misa Date: Tue, 13 Apr 2021 00:38:03 -0700 Subject: [PATCH] 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. --- desktop_version/src/FileSystemUtils.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/desktop_version/src/FileSystemUtils.cpp b/desktop_version/src/FileSystemUtils.cpp index aaf0a184..44162aee 100644 --- a/desktop_version/src/FileSystemUtils.cpp +++ b/desktop_version/src/FileSystemUtils.cpp @@ -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);