mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Make fs::extractZipFile thread-safe
This commit is contained in:
parent
9fab5d594c
commit
2d5b7b5fb4
3 changed files with 69 additions and 55 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue