/**************************************************************************/ /* editor_paths.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_paths.h" #include "core/config/engine.h" #include "core/config/project_settings.h" #include "core/io/dir_access.h" #include "core/os/os.h" #include "main/main.h" EditorPaths *EditorPaths::singleton = …; bool EditorPaths::are_paths_valid() const { … } String EditorPaths::get_data_dir() const { … } String EditorPaths::get_config_dir() const { … } String EditorPaths::get_cache_dir() const { … } String EditorPaths::get_project_data_dir() const { … } bool EditorPaths::is_self_contained() const { … } String EditorPaths::get_self_contained_file() const { … } String EditorPaths::get_export_templates_dir() const { … } String EditorPaths::get_debug_keystore_path() const { … } String EditorPaths::get_project_settings_dir() const { … } String EditorPaths::get_text_editor_themes_dir() const { … } String EditorPaths::get_script_templates_dir() const { … } String EditorPaths::get_project_script_templates_dir() const { … } String EditorPaths::get_feature_profiles_dir() const { … } void EditorPaths::create() { … } void EditorPaths::free() { … } void EditorPaths::_bind_methods() { … } EditorPaths::EditorPaths() { … }