godot/editor/editor_file_system.cpp

/**************************************************************************/
/*  editor_file_system.cpp                                                */
/**************************************************************************/
/*                         This file is part of:                          */
/*                             GODOT ENGINE                               */
/*                        https://godotengine.org                         */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                  */
/*                                                                        */
/* Permission is hereby granted, free of charge, to any person obtaining  */
/* a copy of this software and associated documentation files (the        */
/* "Software"), to deal in the Software without restriction, including    */
/* without limitation the rights to use, copy, modify, merge, publish,    */
/* distribute, sublicense, and/or sell copies of the Software, and to     */
/* permit persons to whom the Software is furnished to do so, subject to  */
/* the following conditions:                                              */
/*                                                                        */
/* The above copyright notice and this permission notice shall be         */
/* included in all copies or substantial portions of the Software.        */
/*                                                                        */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,        */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF     */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY   */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,   */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE      */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                 */
/**************************************************************************/

#include "editor_file_system.h"

#include "core/config/project_settings.h"
#include "core/extension/gdextension_manager.h"
#include "core/io/dir_access.h"
#include "core/io/file_access.h"
#include "core/io/resource_saver.h"
#include "core/object/worker_thread_pool.h"
#include "core/os/os.h"
#include "core/variant/variant_parser.h"
#include "editor/editor_help.h"
#include "editor/editor_node.h"
#include "editor/editor_paths.h"
#include "editor/editor_resource_preview.h"
#include "editor/editor_settings.h"
#include "editor/plugins/script_editor_plugin.h"
#include "editor/project_settings_editor.h"
#include "scene/resources/packed_scene.h"

EditorFileSystem *EditorFileSystem::singleton =;
//the name is the version, to keep compatibility with different versions of Godot
#define CACHE_FILE_NAME

int EditorFileSystemDirectory::find_file_index(const String &p_file) const {}

int EditorFileSystemDirectory::find_dir_index(const String &p_dir) const {}

void EditorFileSystemDirectory::force_update() {}

int EditorFileSystemDirectory::get_subdir_count() const {}

EditorFileSystemDirectory *EditorFileSystemDirectory::get_subdir(int p_idx) {}

int EditorFileSystemDirectory::get_file_count() const {}

String EditorFileSystemDirectory::get_file(int p_idx) const {}

String EditorFileSystemDirectory::get_path() const {}

String EditorFileSystemDirectory::get_file_path(int p_idx) const {}

Vector<String> EditorFileSystemDirectory::get_file_deps(int p_idx) const {}

bool EditorFileSystemDirectory::get_file_import_is_valid(int p_idx) const {}

uint64_t EditorFileSystemDirectory::get_file_modified_time(int p_idx) const {}

uint64_t EditorFileSystemDirectory::get_file_import_modified_time(int p_idx) const {}

String EditorFileSystemDirectory::get_file_script_class_name(int p_idx) const {}

String EditorFileSystemDirectory::get_file_script_class_extends(int p_idx) const {}

String EditorFileSystemDirectory::get_file_script_class_icon_path(int p_idx) const {}

String EditorFileSystemDirectory::get_file_icon_path(int p_idx) const {}

StringName EditorFileSystemDirectory::get_file_type(int p_idx) const {}

StringName EditorFileSystemDirectory::get_file_resource_script_class(int p_idx) const {}

String EditorFileSystemDirectory::get_name() {}

EditorFileSystemDirectory *EditorFileSystemDirectory::get_parent() {}

void EditorFileSystemDirectory::_bind_methods() {}

EditorFileSystemDirectory::EditorFileSystemDirectory() {}

EditorFileSystemDirectory::~EditorFileSystemDirectory() {}

EditorFileSystem::ScannedDirectory::~ScannedDirectory() {}

void EditorFileSystem::_first_scan_filesystem() {}

void EditorFileSystem::_first_scan_process_scripts(const ScannedDirectory *p_scan_dir, HashSet<String> &p_existing_class_names, HashSet<String> &p_extensions) {}

void EditorFileSystem::_scan_filesystem() {}

void EditorFileSystem::_save_filesystem_cache() {}

void EditorFileSystem::_thread_func(void *_userdata) {}

bool EditorFileSystem::_is_test_for_reimport_needed(const String &p_path, uint64_t p_last_modification_time, uint64_t p_modification_time, uint64_t p_last_import_modification_time, uint64_t p_import_modification_time, const Vector<String> &p_import_dest_paths) {}

bool EditorFileSystem::_test_for_reimport(const String &p_path, const String &p_expected_import_md5) {}

Vector<String> EditorFileSystem::_get_import_dest_paths(const String &p_path) {}

bool EditorFileSystem::_scan_import_support(const Vector<String> &reimports) {}

bool EditorFileSystem::_update_scan_actions() {}

void EditorFileSystem::scan() {}

void EditorFileSystem::ScanProgress::increment() {}

int EditorFileSystem::_scan_new_dir(ScannedDirectory *p_dir, Ref<DirAccess> &da) {}

void EditorFileSystem::_process_file_system(const ScannedDirectory *p_scan_dir, EditorFileSystemDirectory *p_dir, ScanProgress &p_progress, HashSet<String> *r_processed_files) {}

void EditorFileSystem::_process_removed_files(const HashSet<String> &p_processed_files) {}

void EditorFileSystem::_scan_fs_changes(EditorFileSystemDirectory *p_dir, ScanProgress &p_progress) {}

void EditorFileSystem::_delete_internal_files(const String &p_file) {}

int EditorFileSystem::_insert_actions_delete_files_directory(EditorFileSystemDirectory *p_dir) {}

void EditorFileSystem::_thread_func_sources(void *_userdata) {}

void EditorFileSystem::_remove_invalid_global_class_names(const HashSet<String> &p_existing_class_names) {}

String EditorFileSystem::_get_file_by_class_name(EditorFileSystemDirectory *p_dir, const String &p_class_name, EditorFileSystemDirectory::FileInfo *&r_file_info) {}

void EditorFileSystem::scan_changes() {}

void EditorFileSystem::_notification(int p_what) {}

bool EditorFileSystem::is_scanning() const {}

float EditorFileSystem::get_scanning_progress() const {}

EditorFileSystemDirectory *EditorFileSystem::get_filesystem() {}

void EditorFileSystem::_save_filesystem_cache(EditorFileSystemDirectory *p_dir, Ref<FileAccess> p_file) {}

bool EditorFileSystem::_find_file(const String &p_file, EditorFileSystemDirectory **r_d, int &r_file_pos) const {}

String EditorFileSystem::get_file_type(const String &p_file) const {}

EditorFileSystemDirectory *EditorFileSystem::find_file(const String &p_file, int *r_index) const {}

EditorFileSystemDirectory *EditorFileSystem::get_filesystem_path(const String &p_path) {}

void EditorFileSystem::_save_late_updated_files() {}

Vector<String> EditorFileSystem::_get_dependencies(const String &p_path) {}

String EditorFileSystem::_get_global_script_class(const String &p_type, const String &p_path, String *r_extends, String *r_icon_path) const {}

void EditorFileSystem::_update_file_icon_path(EditorFileSystemDirectory::FileInfo *file_info) {}

void EditorFileSystem::_update_files_icon_path(EditorFileSystemDirectory *edp) {}

void EditorFileSystem::_update_script_classes() {}

void EditorFileSystem::_update_script_documentation() {}

bool EditorFileSystem::_should_reload_script(const String &p_path) {}

void EditorFileSystem::_process_update_pending() {}

void EditorFileSystem::_queue_update_script_class(const String &p_path, const String &p_type, const String &p_script_class_name, const String &p_script_class_extends, const String &p_script_class_icon_path) {}

void EditorFileSystem::_update_scene_groups() {}

void EditorFileSystem::_update_pending_scene_groups() {}

void EditorFileSystem::_queue_update_scene_groups(const String &p_path) {}

void EditorFileSystem::_get_all_scenes(EditorFileSystemDirectory *p_dir, HashSet<String> &r_list) {}

void EditorFileSystem::update_file(const String &p_file) {}

void EditorFileSystem::update_files(const Vector<String> &p_script_paths) {}

HashSet<String> EditorFileSystem::get_valid_extensions() const {}

void EditorFileSystem::_register_global_class_script(const String &p_search_path, const String &p_target_path, const String &p_type, const String &p_script_class_name, const String &p_script_class_extends, const String &p_script_class_icon_path) {}

void EditorFileSystem::register_global_class_script(const String &p_search_path, const String &p_target_path) {}

Error EditorFileSystem::_reimport_group(const String &p_group_file, const Vector<String> &p_files) {}

Error EditorFileSystem::_reimport_file(const String &p_file, const HashMap<StringName, Variant> &p_custom_options, const String &p_custom_importer, Variant *p_generator_parameters, bool p_update_file_system) {}

void EditorFileSystem::_find_group_files(EditorFileSystemDirectory *efd, HashMap<String, Vector<String>> &group_files, HashSet<String> &groups_to_reimport) {}

void EditorFileSystem::reimport_file_with_custom_parameters(const String &p_file, const String &p_importer, const HashMap<StringName, Variant> &p_custom_params) {}

void EditorFileSystem::_reimport_thread(uint32_t p_index, ImportThreadData *p_import_data) {}

void EditorFileSystem::reimport_files(const Vector<String> &p_files) {}

Error EditorFileSystem::reimport_append(const String &p_file, const HashMap<StringName, Variant> &p_custom_options, const String &p_custom_importer, Variant p_generator_parameters) {}

Error EditorFileSystem::_resource_import(const String &p_path) {}

Ref<Resource> EditorFileSystem::_load_resource_on_startup(ResourceFormatImporter *p_importer, const String &p_path, Error *r_error, bool p_use_sub_threads, float *r_progress, ResourceFormatLoader::CacheMode p_cache_mode) {}

bool EditorFileSystem::_should_skip_directory(const String &p_path) {}

bool EditorFileSystem::is_group_file(const String &p_path) const {}

void EditorFileSystem::_move_group_files(EditorFileSystemDirectory *efd, const String &p_group_file, const String &p_new_location) {}

void EditorFileSystem::move_group_file(const String &p_path, const String &p_new_path) {}

Error EditorFileSystem::make_dir_recursive(const String &p_path, const String &p_base_path) {}

ResourceUID::ID EditorFileSystem::_resource_saver_get_resource_id_for_path(const String &p_path, bool p_generate) {}

static void _scan_extensions_dir(EditorFileSystemDirectory *d, HashSet<String> &extensions) {}
bool EditorFileSystem::_scan_extensions() {}

void EditorFileSystem::_bind_methods() {}

void EditorFileSystem::_update_extensions() {}

void EditorFileSystem::add_import_format_support_query(Ref<EditorFileSystemImportFormatSupportQuery> p_query) {}
void EditorFileSystem::remove_import_format_support_query(Ref<EditorFileSystemImportFormatSupportQuery> p_query) {}

EditorFileSystem::EditorFileSystem() {}

EditorFileSystem::~EditorFileSystem() {}