Make FileAccess and DirAccess classes reference counted.

This commit is contained in:
bruvzg
2022-04-11 13:28:51 +03:00
parent ca9372622f
commit 9381acb6a4
193 changed files with 1122 additions and 1776 deletions
+1 -2
View File
@@ -869,9 +869,8 @@ void NativeExtensionAPIDump::generate_extension_json_file(const String &p_path)
json.instantiate();
String text = json->stringify(api, "\t", false);
FileAccessRef fa = FileAccess::open(p_path, FileAccess::WRITE);
Ref<FileAccess> fa = FileAccess::open(p_path, FileAccess::WRITE);
CharString cs = text.ascii();
fa->store_buffer((const uint8_t *)cs.ptr(), cs.length());
fa->close();
}
#endif