summaryrefslogtreecommitdiff
path: root/editor/export_template_manager.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-03-06 15:01:13 +0100
committerkobewi <kobewi4e@gmail.com>2022-03-06 15:01:13 +0100
commit73fdb22668e4c4e7b9b857063195c7b489385985 (patch)
treeaebbc34cbef773488bb090d45d2c3daf4fc512cb /editor/export_template_manager.cpp
parent272b35595474e02b640dcd51201bc07424d43bae (diff)
Improve some DirAccess usage
Diffstat (limited to 'editor/export_template_manager.cpp')
-rw-r--r--editor/export_template_manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/export_template_manager.cpp b/editor/export_template_manager.cpp
index 3cad600002..0a8d35aff1 100644
--- a/editor/export_template_manager.cpp
+++ b/editor/export_template_manager.cpp
@@ -645,7 +645,7 @@ Error ExportTemplateManager::install_android_template_from_file(const String &p_
// To support custom Android builds, we install the Java source code and buildsystem
// from android_source.zip to the project's res://android folder.
- DirAccessRef da = DirAccess::open("res://");
+ DirAccessRef da = DirAccess::create(DirAccess::ACCESS_RESOURCES);
ERR_FAIL_COND_V(!da, ERR_CANT_CREATE);
// Make res://android dir (if it does not exist).