summaryrefslogtreecommitdiff
path: root/src/filesys.h
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-09-19 16:55:35 +0200
committersfan5 <sfan5@live.de>2021-10-07 00:20:01 +0200
commit2d5b7b5fb48d182fbab8e4ad69e9a552a3c07c6e (patch)
tree804a2a86365861f0ca7fecf4d718d2d53115e34e /src/filesys.h
parent9fab5d594cab4c0a027f0aecf356382f3a37c1de (diff)
downloadminetest-2d5b7b5fb48d182fbab8e4ad69e9a552a3c07c6e.tar.gz
minetest-2d5b7b5fb48d182fbab8e4ad69e9a552a3c07c6e.tar.bz2
minetest-2d5b7b5fb48d182fbab8e4ad69e9a552a3c07c6e.zip
Make fs::extractZipFile thread-safe
Diffstat (limited to 'src/filesys.h')
-rw-r--r--src/filesys.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/filesys.h b/src/filesys.h
index f72cb0ba2..233e56bba 100644
--- a/src/filesys.h
+++ b/src/filesys.h
@@ -24,12 +24,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <vector>
#include "exceptions.h"
-#ifdef _WIN32 // WINDOWS
+#ifdef _WIN32
#define DIR_DELIM "\\"
#define DIR_DELIM_CHAR '\\'
#define FILESYS_CASE_INSENSITIVE true
#define PATH_DELIM ";"
-#else // POSIX
+#else
#define DIR_DELIM "/"
#define DIR_DELIM_CHAR '/'
#define FILESYS_CASE_INSENSITIVE false
@@ -133,7 +133,9 @@ const char *GetFilenameFromPath(const char *path);
bool safeWriteToFile(const std::string &path, const std::string &content);
+#ifndef SERVER
bool extractZipFile(irr::io::IFileSystem *fs, const char *filename, const std::string &destination);
+#endif
bool ReadFile(const std::string &path, std::string &out);