diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-28 20:31:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-28 20:31:09 +0300 |
commit | bb87f2911b63eaf80e49d689bf52ecf2042ae098 (patch) | |
tree | 0778087134ec3c5a2370d417bcadb64a1dc6a9bc /src/utils/files.h | |
parent | 4415cb66734e67dfcdf8924d354107d27fb70fee (diff) | |
download | ManaVerse-bb87f2911b63eaf80e49d689bf52ecf2042ae098.tar.gz ManaVerse-bb87f2911b63eaf80e49d689bf52ecf2042ae098.tar.bz2 ManaVerse-bb87f2911b63eaf80e49d689bf52ecf2042ae098.tar.xz ManaVerse-bb87f2911b63eaf80e49d689bf52ecf2042ae098.zip |
Move from resourcemanager functions related to files into other files.
Diffstat (limited to 'src/utils/files.h')
-rw-r--r-- | src/utils/files.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/utils/files.h b/src/utils/files.h index 2046b8ac9..1db9993a7 100644 --- a/src/utils/files.h +++ b/src/utils/files.h @@ -61,6 +61,22 @@ namespace Files void getFilesWithDir(const std::string &restrict path, StringVect &restrict list); + + bool existsLocal(const std::string &path); + + std::string getPath(const std::string &file); + + bool loadTextFile(const std::string &fileName, + StringVect &lines); + + bool loadTextFileLocal(const std::string &fileName, + StringVect &lines); + + void saveTextFile(std::string path, + const std::string &restrict name, + const std::string &restrict text); + + void deleteFilesInDirectory(std::string path); } // namespace Files #endif // UTILS_FILES_H |