mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
fix: extractZipFile is not part of Client but more generic.
This solve a crash from mainmenu while extracting the zip
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -125,6 +129,8 @@ 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);
|
||||
|
Reference in New Issue
Block a user