summaryrefslogtreecommitdiffstats
path: root/editor/editor_paths.cpp
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-10-08 11:14:43 -0500
committerThaddeus Crews <repiteo@outlook.com>2024-10-08 11:14:43 -0500
commitf31a2cc9c9c356e04436c9eb6d04c3cd006fb1b1 (patch)
tree90d10bb3769aef15370c345371f2b33a9b39b49f /editor/editor_paths.cpp
parent3cc4e0ab6f48dc45c8226358422aa486145eea69 (diff)
parent8086894a8e27ef63d7657b1bf6a728a00e522a4e (diff)
downloadredot-engine-f31a2cc9c9c356e04436c9eb6d04c3cd006fb1b1.tar.gz
Merge pull request #97270 from timothyqiu/optional-edconfig
Create `.editorconfig` file only on project creation
Diffstat (limited to 'editor/editor_paths.cpp')
-rw-r--r--editor/editor_paths.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/editor/editor_paths.cpp b/editor/editor_paths.cpp
index ff869f8a8a..883116bab6 100644
--- a/editor/editor_paths.cpp
+++ b/editor/editor_paths.cpp
@@ -257,22 +257,6 @@ EditorPaths::EditorPaths() {
}
}
- // Check that `.editorconfig` file exists.
- String project_editorconfig_path = "res://.editorconfig";
- if (!FileAccess::exists(project_editorconfig_path)) {
- Ref<FileAccess> f = FileAccess::open(project_editorconfig_path, FileAccess::WRITE);
- if (f.is_valid()) {
- f->store_line("root = true");
- f->store_line("");
- f->store_line("[*]");
- f->store_line("charset = utf-8");
- f->close();
- } else {
- ERR_PRINT("Failed to create file " + project_editorconfig_path.quote() + ".");
- }
- FileAccess::set_hidden_attribute(project_editorconfig_path, true);
- }
-
Engine::get_singleton()->set_shader_cache_path(project_data_dir);
// Editor metadata dir.