mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Provide a getter for the project data directory.
This commit is contained in:
parent
1cbb1f2796
commit
c8b022c165
8 changed files with 33 additions and 12 deletions
|
@ -118,9 +118,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.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, "") + "/";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue