summaryrefslogtreecommitdiff
path: root/core/io/file_access_pack.h
diff options
context:
space:
mode:
authorMichael Alexsander <michaelalexsander@protonmail.com>2020-01-17 22:26:44 -0300
committerMichael Alexsander <michaelalexsander@protonmail.com>2020-04-16 22:52:26 -0300
commit3c261e0dfa19d9c661ad6ca908a3b8ccee050016 (patch)
tree7850bd7338298f0aeb5831c179cfa5ec650afe43 /core/io/file_access_pack.h
parent30ab5c9baae1cad3e157d906395a4eb8cef77e42 (diff)
Made possible to specify where to dump the contents when loading a ".pck" file
Diffstat (limited to 'core/io/file_access_pack.h')
-rw-r--r--core/io/file_access_pack.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/io/file_access_pack.h b/core/io/file_access_pack.h
index 8df6826ac9..1a46bef0f6 100644
--- a/core/io/file_access_pack.h
+++ b/core/io/file_access_pack.h
@@ -113,7 +113,7 @@ public:
_FORCE_INLINE_ bool is_disabled() const { return disabled; }
static PackedData *get_singleton() { return singleton; }
- Error add_pack(const String &p_path, bool p_replace_files);
+ Error add_pack(const String &p_path, bool p_replace_files, const String &p_destination);
_FORCE_INLINE_ FileAccess *try_open_path(const String &p_path);
_FORCE_INLINE_ bool has_path(const String &p_path);
@@ -125,7 +125,7 @@ public:
class PackSource {
public:
- virtual bool try_open_pack(const String &p_path, bool p_replace_files) = 0;
+ virtual bool try_open_pack(const String &p_path, bool p_replace_files, const String &p_destination = "") = 0;
virtual FileAccess *get_file(const String &p_path, PackedData::PackedFile *p_file) = 0;
virtual ~PackSource() {}
};
@@ -133,7 +133,7 @@ public:
class PackedSourcePCK : public PackSource {
public:
- virtual bool try_open_pack(const String &p_path, bool p_replace_files);
+ virtual bool try_open_pack(const String &p_path, bool p_replace_files, const String &p_destination = "");
virtual FileAccess *get_file(const String &p_path, PackedData::PackedFile *p_file);
};