mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Rename version defines to GODOT_VERSION_* to match GDExtension godot-cpp
This commit is contained in:
parent
74907876d3
commit
97ee05e9b7
53 changed files with 220 additions and 197 deletions
|
|
@ -376,7 +376,7 @@ void ProjectDialog::_browse_project_path() {
|
|||
if (mode == MODE_IMPORT) {
|
||||
fdialog_project->set_file_mode(EditorFileDialog::FILE_MODE_OPEN_ANY);
|
||||
fdialog_project->clear_filters();
|
||||
fdialog_project->add_filter("project.godot", vformat("%s %s", VERSION_NAME, TTR("Project")));
|
||||
fdialog_project->add_filter("project.godot", vformat("%s %s", GODOT_VERSION_NAME, TTR("Project")));
|
||||
fdialog_project->add_filter("*.zip", TTR("ZIP File"));
|
||||
} else {
|
||||
fdialog_project->set_file_mode(EditorFileDialog::FILE_MODE_OPEN_DIR);
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ void ProjectListItemControl::set_unsupported_features(PackedStringArray p_featur
|
|||
project_version_major = project_version_split[0].to_int();
|
||||
project_version_minor = project_version_split[1].to_int();
|
||||
}
|
||||
if (VERSION_MAJOR != project_version_major || VERSION_MINOR <= project_version_minor) {
|
||||
if (GODOT_VERSION_MAJOR != project_version_major || GODOT_VERSION_MINOR <= project_version_minor) {
|
||||
// Don't show a warning if the project was last edited in a previous minor version.
|
||||
tooltip_text += TTR("This project was last edited in a different Godot version: ") + p_features[i] + "\n";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue