Hello, all. I was wondering if there is a way to use love.filesystem.mount on folders/zipfiles inside the source directory. This would make my module/plugin system possible without having to edit the LÖVE internals.
Also, if this is impossible, is there a reason other than "it's not implemented?" I would personally love to have this feature, and I was thinking of adding it myself.
Mount a folder/zipfile from source directory
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Mount a folder/zipfile from source directory
LÖVE-Nuklear - a lightweight immediate mode GUI for LÖVE games
- slime
- Solid Snayke
- Posts: 3144
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Mount a folder/zipfile from source directory
It's not possible, since the source directory is actually a zip file when you distribute your game as a .love, and PhysFS (the library used by love.filesystem) can't mount zips that are inside other zips.
One option might be to copy the zip from the game's source directory to the save directory, and mount the copy.
One option might be to copy the zip from the game's source directory to the save directory, and mount the copy.
Re: Mount a folder/zipfile from source directory
Ah, thanks, that sounds like what I'll do -- just copy the plugins to the save directory and mount from there.
LÖVE-Nuklear - a lightweight immediate mode GUI for LÖVE games
Who is online
Users browsing this forum: Bing [Bot] and 1 guest