You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Make FileAccess and DirAccess classes reference counted.
This commit is contained in:
@@ -156,8 +156,8 @@ void EditorDirDialog::_make_dir_confirm() {
|
||||
|
||||
String dir = ti->get_metadata(0);
|
||||
|
||||
DirAccessRef d = DirAccess::open(dir);
|
||||
ERR_FAIL_COND_MSG(!d, "Cannot open directory '" + dir + "'.");
|
||||
Ref<DirAccess> d = DirAccess::open(dir);
|
||||
ERR_FAIL_COND_MSG(d.is_null(), "Cannot open directory '" + dir + "'.");
|
||||
|
||||
const String stripped_dirname = makedirname->get_text().strip_edges();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user