Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds the ability to mount an archive for writing. This means LÖVR can write anywhere on the filesystem, instead of only the save directory.
How it works:
lovr.filesystem.mount
takes aMountMode
after the mountpoint. The mount mode can be eitherread
(the default) orreadwrite
.Filesystem functions that previously targeted the save directory (
write
,createDirectory
,remove
) will now use the virtual filesystem: they search through the mounted archives, find the first one inreadwrite
mode with a mountpoint that contains the input path, and write to that archive.The save directory isn't special anymore -- its archive is just
readwrite
instead ofread
now.I haven't tested this code very well yet.