载入中...
搜索中...
未找到
Filesystem.h
浏览该文件的文档.
40 bool mount(Data *data, std::string archivename, std::string mountpoint, bool appendToPath = false) override;
41 bool mountRealDirectory(std::string realDir, std::string mountpoint, bool appendToPath = false) override;
Data buffer paired with a filename (used for type identification).
Definition FileData.h:12
OS directory watch with a main-thread event queue. Desktop/mobile: backed by Poco::DirectoryWatcher (...
Definition FileWatch.h:23
A File interface, providing generic means of reading from and writing to files.
Definition File.h:14
Definition Filesystem.h:31
std::string getSaveDirectory() override
Gets the full path of the save folder.
Definition Filesystem.cpp:506
void append(std::string filename, const void *data, int64_t size) const override
Append data to a file, creating it if it doesn't exist.
Definition Filesystem.cpp:599
bool setSource(std::string source) override
Sets the path to the game source. This can only be set once.
Definition Filesystem.cpp:183
int getWatchCount() const override
Definition Filesystem.cpp:776
bool setIdentity(std::string ident, bool appendToPath=false) override
Sets the name of the save folder.
Definition Filesystem.cpp:123
void unwatchAll() override
Definition Filesystem.cpp:772
std::string getRealDirectory(std::string filename) const override
Gets the real directory path containing the file.
Definition Filesystem.cpp:530
bool setSourceFromMemory(const void *data, size_t size) override
Loads the game source from a packaged archive (.eve / zip) held entirely in memory and mounts it at "...
Definition Filesystem.cpp:246
void setFused(bool fused) override
Definition Filesystem.cpp:112
bool watch(std::string path) override
Watch a virtual or absolute OS path (file or directory). File watches monitor the parent directory an...
Definition Filesystem.cpp:764
std::string getSource() const override
Gets the path to the game source. Returns a 0-length string if the source has not been set.
Definition Filesystem.cpp:244
filesystem::File * newFile(std::string filename) const override
Creates a new file.
Definition Filesystem.cpp:440
bool createDirectory(std::string dir) override
Creates a directory. Write dir must be set.
Definition Filesystem.cpp:561
std::vector< std::string > getDirectoryItems(std::string dir) override
This "native" method returns a table of all files in a given directory.
Definition Filesystem.cpp:608
bool isFused() const override
Definition Filesystem.cpp:118
bool unmount(std::string archive) override
Definition Filesystem.cpp:389
std::string pollWatch() override
Pop next watch event kind: "added"|"removed"|"modified"|"movedFrom"|"movedTo". Empty string if queue ...
Definition Filesystem.cpp:781
std::string getLastWatchRealPath() const override
Definition Filesystem.cpp:795
bool mountRealDirectory(std::string realDir, std::string mountpoint, bool appendToPath=false) override
Definition Filesystem.cpp:365
bool unwatch(std::string path) override
Stop watching a path previously passed to watch().
Definition Filesystem.cpp:770
bool mount(std::string archive, std::string mountpoint, bool appendToPath=false) override
Definition Filesystem.cpp:317
std::string getIdentity() const override
Definition Filesystem.cpp:181
void init(const char *arg0) override
Definition Filesystem.cpp:104
bool setupWriteDirectory() override
This sets up the save directory. If the it is already set up, nothing happens.
Definition Filesystem.cpp:270
std::vector< std::string > & getCRequirePath() override
Definition Filesystem.cpp:636
std::string getWorkingDirectory() override
Gets the current working directory.
Definition Filesystem.cpp:442
FileData * read(std::string filename, int64_t size=File::ALL) const override
Reads data from a file.
Definition Filesystem.cpp:581
bool unmountRealDirectory(std::string realDir) override
Definition Filesystem.cpp:380
void allowMountingForPath(const std::string &path) override
Allows a full (OS-dependent) path to be used with Filesystem::mount.
Definition Filesystem.cpp:638
void write(std::string filename, const void *data, int64_t size) const override
Write data to a file.
Definition Filesystem.cpp:590
void setSymlinksEnabled(bool enable) override
Enable or disable symbolic link support in love.filesystem.
Definition Filesystem.cpp:622
bool getInfo(std::string filepath, Info &info) const override
Gets information about the item at the specified filepath. Returns false if nothing exists at the pat...
Definition Filesystem.cpp:540
bool areSymlinksEnabled() const override
Gets whether symbolic link support is enabled.
Definition Filesystem.cpp:628
std::vector< std::string > & getRequirePath() override
Definition Filesystem.cpp:634
std::string getSourceBaseDirectory() const override
Gets the full path to the directory containing the game source. For example if the game source is C:\...
Definition Filesystem.cpp:508
std::string getAppdataDirectory() override
Gets the APPDATA directory. On Windows, this is the folder in the APPDATA% enviroment variable....
Definition Filesystem.cpp:477
std::string getLastWatchPath() const override
Definition Filesystem.cpp:794
Definition Build.cpp:11