diff options
| author | Rémi Verschelde | 2017-05-01 17:44:52 +0200 |
|---|---|---|
| committer | Rémi Verschelde | 2017-05-01 17:50:19 +0200 |
| commit | 7ce8342ac5c0e0a302559d3ef561ffd9dc74ff2c (patch) | |
| tree | 7548791d163e1468ba9794b6ab3eee427f891e1a /editor/editor_file_system.cpp | |
| parent | de7eba887e9fe940dac0958836fa8fb778628d2a (diff) | |
| download | godot-7ce8342ac5c0e0a302559d3ef561ffd9dc74ff2c.tar.gz godot-7ce8342ac5c0e0a302559d3ef561ffd9dc74ff2c.tar.zst godot-7ce8342ac5c0e0a302559d3ef561ffd9dc74ff2c.zip | |
Rename project file to "project.godot"
Slimmed down variant from the reverted #8375.
The rationale behind the name change is to give Godot's project file a unique
extension (".godot") that can be registered on the OS to be associated with
the Godot binary (OS registration not implemented here).
This PR also adds the possibility to start the game or editor if launched
with the project.godot passed as argument, which paves the way for allowing
a similar behaviour on a double-click in the OS file manager (code originally
by @Hinsbart).
Closes #6915.
Diffstat (limited to '')
| -rw-r--r-- | editor/editor_file_system.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp index 2612a2af1..b7070ab5f 100644 --- a/editor/editor_file_system.cpp +++ b/editor/editor_file_system.cpp @@ -509,7 +509,7 @@ void EditorFileSystem::_scan_new_dir(EditorFileSystemDirectory *p_dir, DirAccess if (f.begins_with(".")) //ignore hidden and . / .. continue; - if (FileAccess::exists(cd.plus_file(f).plus_file("godot.cfg"))) // skip if another project inside this + if (FileAccess::exists(cd.plus_file(f).plus_file("project.godot"))) // skip if another project inside this continue; dirs.push_back(f); @@ -688,7 +688,7 @@ void EditorFileSystem::_scan_fs_changes(EditorFileSystemDirectory *p_dir, const int idx = p_dir->find_dir_index(f); if (idx == -1) { - if (FileAccess::exists(cd.plus_file(f).plus_file("godot.cfg"))) // skip if another project inside this + if (FileAccess::exists(cd.plus_file(f).plus_file("project.godot"))) // skip if another project inside this continue; EditorFileSystemDirectory *efd = memnew(EditorFileSystemDirectory); |
