summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorne0fhyk <fhuyakou@gmail.com>2021-09-10 08:32:29 -0700
committerne0fhyk <fhuyakou@gmail.com>2021-09-15 12:52:03 -0700
commit69f890ff11a15cc2c1aa651801a872505ab08c81 (patch)
treeba9bbb131814f460a87605d3f9fce3c578e8e06a /platform
parent729461b2a455bd3b4afb26bb362863a68e98a9ee (diff)
Provide a getter for the project data directory.
Diffstat (limited to 'platform')
-rw-r--r--platform/javascript/api/javascript_tools_editor_plugin.cpp3
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, "") + "/";