You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Make FileAccess and DirAccess classes reference counted.
This commit is contained in:
@@ -161,7 +161,7 @@ void EditorPluginSettings::_cell_button_pressed(Object *p_item, int p_column, in
|
||||
}
|
||||
|
||||
Vector<String> EditorPluginSettings::_get_plugins(const String &p_dir) {
|
||||
DirAccessRef da = DirAccess::create(DirAccess::ACCESS_RESOURCES);
|
||||
Ref<DirAccess> da = DirAccess::create(DirAccess::ACCESS_RESOURCES);
|
||||
Error err = da->change_dir(p_dir);
|
||||
if (err != OK) {
|
||||
return Vector<String>();
|
||||
|
||||
Reference in New Issue
Block a user