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_export.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_export.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/editor_export.cpp b/editor/editor_export.cpp index b719e4a48..4796640a3 100644 --- a/editor/editor_export.cpp +++ b/editor/editor_export.cpp @@ -1381,8 +1381,8 @@ Vector<StringName> EditorExportPlatform::get_dependencies(bool p_bundles) const Set<StringName> exported; - if (FileAccess::exists("res://godot.cfg")) - exported.insert("res://godot.cfg"); + if (FileAccess::exists("res://project.godot")) + exported.insert("res://project.godot"); if (EditorImportExport::get_singleton()->get_export_filter()!=EditorImportExport::EXPORT_SELECTED) { @@ -1978,7 +1978,7 @@ Error EditorExportPlatform::export_project_files(EditorExportSaveFunction p_func } - StringName engine_cfg="res://godot.cfg"; + StringName engine_cfg="res://project.godot"; StringName boot_splash; { String splash=GlobalConfig::get_singleton()->get("application/boot_splash"); //avoid splash from being converted @@ -2032,7 +2032,7 @@ Error EditorExportPlatform::export_project_files(EditorExportSaveFunction p_func { - //make binary godot.cfg config + //make binary project.godot config Map<String,Variant> custom; |
