diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2022-03-06 22:45:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-06 22:45:07 +0100 |
| commit | 78ad01cae7d68c34cd187b9c3a94583e95ff306f (patch) | |
| tree | abeb5ac4f6e06b91bfa85e70b9805e7f01422ece /editor/filesystem_dock.cpp | |
| parent | 47f1c4f900b3f1b367b992b6e2e63e2cc27dc16b (diff) | |
| parent | 73fdb22668e4c4e7b9b857063195c7b489385985 (diff) | |
| download | redot-engine-78ad01cae7d68c34cd187b9c3a94583e95ff306f.tar.gz | |
Merge pull request #58839 from KoBeWi/access_creator
Improve some DirAccess usage
Diffstat (limited to 'editor/filesystem_dock.cpp')
| -rw-r--r-- | editor/filesystem_dock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index b41123c0dd..e5cd7b8974 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -512,7 +512,7 @@ void FileSystemDock::_navigate_to_path(const String &p_path, bool p_select_in_fa if (target_path.ends_with("/")) { target_path = target_path.substr(0, target_path.length() - 1); } - DirAccess *dirAccess = DirAccess::open("res://"); + DirAccess *dirAccess = DirAccess::create(DirAccess::ACCESS_RESOURCES); if (dirAccess->file_exists(p_path)) { path = target_path; } else if (dirAccess->dir_exists(p_path)) { |
