From 73fdb22668e4c4e7b9b857063195c7b489385985 Mon Sep 17 00:00:00 2001 From: kobewi Date: Sun, 6 Mar 2022 15:01:13 +0100 Subject: Improve some DirAccess usage --- editor/export_template_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/export_template_manager.cpp') 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). -- cgit v1.2.3