summaryrefslogtreecommitdiff
path: root/core/io/file_access_pack.cpp
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2023-02-16 15:25:32 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2023-02-16 15:34:20 +0200
commitbc95b0b17145e0e8df7e92ae5bea689112afab85 (patch)
tree3f8b1b171d14032e7508108caa50bdda44398d5d /core/io/file_access_pack.cpp
parent953383328af17e8c9fd6359285c12617cb22f636 (diff)
Restore FileAccess.close method.
Diffstat (limited to 'core/io/file_access_pack.cpp')
-rw-r--r--core/io/file_access_pack.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/io/file_access_pack.cpp b/core/io/file_access_pack.cpp
index 7c392c005a..9553f35b19 100644
--- a/core/io/file_access_pack.cpp
+++ b/core/io/file_access_pack.cpp
@@ -366,6 +366,10 @@ bool FileAccessPack::file_exists(const String &p_name) {
return false;
}
+void FileAccessPack::close() {
+ f = Ref<FileAccess>();
+}
+
FileAccessPack::FileAccessPack(const String &p_path, const PackedData::PackedFile &p_file) :
pf(p_file),
f(FileAccess::open(pf.pack, FileAccess::READ)) {