I’m trying to mount a directory of a multifile using the VFS mount function, however, whenever I try it appears that is isn’t loading the directory because loader.loadSfx fails to find the file. Here’s my code:

vfs = VirtualFileSystem.getGlobalPtr()
vfs.mount(Filename(''), Filename('sounds'), vfs.MFReadOnly)

# This fails!

What’s the proper way to go about doing this?

Well, for starters, you’re mounting the contents of to a virtual directory called “sounds”. So you should be loading it as “sounds/mySound.mp3”.

Nevermind, I figured it out myself! Thanks for the help though!