diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-04-12 14:16:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-12 14:16:52 +0200 |
commit | c28d7813445a897a371105ddb8f42ee68fafea0c (patch) | |
tree | 29e4202a2b47505fe1dcfb0b6507cbb7f5d421e8 /core/io/file_access_zip.cpp | |
parent | 603b1315a711f427a581445c9680116bee0ef755 (diff) | |
parent | d2ebac3a302f41223ab86f5bc2862dd3a050a010 (diff) |
Merge pull request #60169 from bruvzg/remove_fa_close
Diffstat (limited to 'core/io/file_access_zip.cpp')
-rw-r--r-- | core/io/file_access_zip.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/io/file_access_zip.cpp b/core/io/file_access_zip.cpp index 1caff2dc02..17f2335a8e 100644 --- a/core/io/file_access_zip.cpp +++ b/core/io/file_access_zip.cpp @@ -235,7 +235,7 @@ ZipArchive::~ZipArchive() { } Error FileAccessZip::_open(const String &p_path, int p_mode_flags) { - close(); + _close(); ERR_FAIL_COND_V(p_mode_flags & FileAccess::WRITE, FAILED); ZipArchive *arch = ZipArchive::get_singleton(); @@ -249,7 +249,7 @@ Error FileAccessZip::_open(const String &p_path, int p_mode_flags) { return OK; } -void FileAccessZip::close() { +void FileAccessZip::_close() { if (!zfile) { return; } @@ -341,7 +341,7 @@ FileAccessZip::FileAccessZip(const String &p_path, const PackedData::PackedFile } FileAccessZip::~FileAccessZip() { - close(); + _close(); } #endif // MINIZIP_ENABLED |