mirror of
https://github.com/love2d/love.git
synced 2026-08-19 12:14:20 +02:00
love.filesystem.mount can accept a Data object containing zipped data.
- Add mount(Data, archivename, mountpoint [, appendtopath]). 'archivename' must be a string that has not been used with mount before. - Add mount(FileData, mountpoint [, appendtopath]). The file path of the FileData is used as the archive name. - Add unmount(Data). - unmount(archivename) also works.
This commit is contained in:
@@ -135,7 +135,9 @@ public:
|
||||
virtual const char *getSource() const = 0;
|
||||
|
||||
virtual bool mount(const char *archive, const char *mountpoint, bool appendToPath = false) = 0;
|
||||
virtual bool mount(Data *data, const char *archivename, const char *mountpoint, bool appendToPath = false) = 0;
|
||||
virtual bool unmount(const char *archive) = 0;
|
||||
virtual bool unmount(Data *data) = 0;
|
||||
|
||||
/**
|
||||
* Creates a new file.
|
||||
|
||||
Reference in New Issue
Block a user