Multifiles

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('core.mf'), Filename('sounds'), vfs.MFReadOnly)

loader.loadSfx('core/sounds/mySound.mp3')
# This fails!

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

Well, for starters, you’re mounting the contents of core.mf 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!