diff options
author | ne0fhyk <fhuyakou@gmail.com> | 2021-09-10 08:32:29 -0700 |
---|---|---|
committer | ne0fhyk <fhuyakou@gmail.com> | 2021-09-15 12:52:03 -0700 |
commit | 69f890ff11a15cc2c1aa651801a872505ab08c81 (patch) | |
tree | ba9bbb131814f460a87605d3f9fce3c578e8e06a /platform/javascript/api | |
parent | 729461b2a455bd3b4afb26bb362863a68e98a9ee (diff) |
Provide a getter for the project data directory.
Diffstat (limited to 'platform/javascript/api')
-rw-r--r-- | platform/javascript/api/javascript_tools_editor_plugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/javascript/api/javascript_tools_editor_plugin.cpp b/platform/javascript/api/javascript_tools_editor_plugin.cpp index c50195639c..11bb7605ed 100644 --- a/platform/javascript/api/javascript_tools_editor_plugin.cpp +++ b/platform/javascript/api/javascript_tools_editor_plugin.cpp @@ -131,9 +131,10 @@ void JavaScriptToolsEditorPlugin::_zip_recursive(String p_path, String p_base_pa } dir->list_dir_begin(); String cur = dir->get_next(); + String project_data_dir_name = ProjectSettings::get_singleton()->get_project_data_dir_name(); while (!cur.is_empty()) { String cs = p_path.plus_file(cur); - if (cur == "." || cur == ".." || cur == ".import") { + if (cur == "." || cur == ".." || cur == project_data_dir_name) { // Skip } else if (dir->current_is_dir()) { String path = cs.replace_first(p_base_path, "") + "/"; |