Mount a folder/zipfile from source directory

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
keharriso
Party member
Posts: 102
Joined: Fri Nov 16, 2012 9:34 pm

Mount a folder/zipfile from source directory

Post by keharriso »

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.
LÖVE-Nuklear - a lightweight immediate mode GUI for LÖVE games
User avatar
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

Post by slime »

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.
User avatar
keharriso
Party member
Posts: 102
Joined: Fri Nov 16, 2012 9:34 pm

Re: Mount a folder/zipfile from source directory

Post by keharriso »

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
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest