X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ffilesys.h;h=a9584b036e176a6c6d173f6bfeaa1a82af3b4eec;hb=f2fd4432625ee5cf0380bdd006cd1f15d053b12f;hp=09f129aa332815e91b988e3d9c2c0f7e3a02b581;hpb=05d93c7fa1be9245dd5211b7dc1bdf0961b39eea;p=dragonfireclient.git diff --git a/src/filesys.h b/src/filesys.h index 09f129aa3..a9584b036 100644 --- a/src/filesys.h +++ b/src/filesys.h @@ -36,6 +36,10 @@ with this program; if not, write to the Free Software Foundation, Inc., #define PATH_DELIM ":" #endif +namespace irr { namespace io { +class IFileSystem; +}} + namespace fs { @@ -85,9 +89,6 @@ void GetRecursiveSubPaths(const std::string &path, bool list_files, const std::set &ignore = {}); -// Tries to delete all, returns false if any failed -bool DeletePaths(const std::vector &paths); - // Only pass full paths to this one. True on success. bool RecursiveDeleteContent(const std::string &path); @@ -128,6 +129,10 @@ const char *GetFilenameFromPath(const char *path); bool safeWriteToFile(const std::string &path, const std::string &content); +bool extractZipFile(irr::io::IFileSystem *fs, const char *filename, const std::string &destination); + +bool ReadFile(const std::string &path, std::string &out); + bool Rename(const std::string &from, const std::string &to); } // namespace fs