You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-21 14:57:09 +00:00
Make FileAccess and DirAccess classes reference counted.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user