From 39d9a5540c770242388d02397da4f6a00b09ccbc Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Tue, 10 May 2022 23:56:32 +0200 Subject: [HTML5] Fix JS "tools" editor plugin. Needed update after file/dir access refactoring. --- platform/javascript/api/javascript_tools_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform') diff --git a/platform/javascript/api/javascript_tools_editor_plugin.cpp b/platform/javascript/api/javascript_tools_editor_plugin.cpp index 31ce71127d..198af61eff 100644 --- a/platform/javascript/api/javascript_tools_editor_plugin.cpp +++ b/platform/javascript/api/javascript_tools_editor_plugin.cpp @@ -122,7 +122,7 @@ void JavaScriptToolsEditorPlugin::_zip_file(String p_path, String p_base_path, z void JavaScriptToolsEditorPlugin::_zip_recursive(String p_path, String p_base_path, zipFile p_zip) { Ref dir = DirAccess::open(p_path); - if (!dir) { + if (dir.is_null()) { WARN_PRINT("Unable to open directory for zipping: " + p_path); return; } -- cgit v1.2.3