1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-19 14:31:59 +00:00

Restore FileAccess.close method.

This commit is contained in:
bruvzg
2023-02-16 15:25:32 +02:00
parent 953383328a
commit bc95b0b171
22 changed files with 76 additions and 1 deletions

View File

@@ -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)) {