Skip to content

Commit 4d2409f

Browse files
committed
Change .build extension for engine build profiles to .gdbuild
`.build` was already used by the Meson buildsystem for its build file. Using a unique file extension for Godot avoids ambiguity and allows third-party tools to reliably detect its file formats. The previous file extension is still accepted in the load/save dialog, so this change is backwards-compatible. The buildsystem doesn't care about the file extension, so no changes are required on that end.
1 parent 6b5b84c commit 4d2409f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

editor/editor_build_profile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -866,15 +866,15 @@ EditorBuildProfileManager::EditorBuildProfileManager() {
866866
import_profile = memnew(EditorFileDialog);
867867
add_child(import_profile);
868868
import_profile->set_file_mode(EditorFileDialog::FILE_MODE_OPEN_FILE);
869-
import_profile->add_filter("*.build", TTR("Engine Compilation Profile"));
869+
import_profile->add_filter("*.gdbuild,*.build", TTR("Engine Compilation Profile"));
870870
import_profile->connect("files_selected", callable_mp(this, &EditorBuildProfileManager::_import_profile));
871871
import_profile->set_title(TTR("Load Profile"));
872872
import_profile->set_access(EditorFileDialog::ACCESS_FILESYSTEM);
873873

874874
export_profile = memnew(EditorFileDialog);
875875
add_child(export_profile);
876876
export_profile->set_file_mode(EditorFileDialog::FILE_MODE_SAVE_FILE);
877-
export_profile->add_filter("*.build", TTR("Engine Compilation Profile"));
877+
export_profile->add_filter("*.gdbuild,*.build", TTR("Engine Compilation Profile"));
878878
export_profile->connect("file_selected", callable_mp(this, &EditorBuildProfileManager::_export_profile));
879879
export_profile->set_title(TTR("Export Profile"));
880880
export_profile->set_access(EditorFileDialog::ACCESS_FILESYSTEM);

0 commit comments

Comments
 (0)