summaryrefslogtreecommitdiff
path: root/src/utils/files.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-28 20:31:09 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-28 20:31:09 +0300
commitbb87f2911b63eaf80e49d689bf52ecf2042ae098 (patch)
tree0778087134ec3c5a2370d417bcadb64a1dc6a9bc /src/utils/files.h
parent4415cb66734e67dfcdf8924d354107d27fb70fee (diff)
downloadManaVerse-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.h16
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