Merge pull request #103557 from aaronfranke/godot-version-defines

Rename version defines to `GODOT_VERSION_*` to match GDExtension godot-cpp
This commit is contained in:
Thaddeus Crews
2025-03-13 08:57:42 -05:00
53 changed files with 220 additions and 197 deletions

View File

@@ -339,7 +339,7 @@ void EditorNode::_update_title() {
// Display the "modified" mark before anything else so that it can always be seen in the OS task bar.
title = vformat("(*) %s", title);
}
DisplayServer::get_singleton()->window_set_title(title + String(" - ") + VERSION_NAME);
DisplayServer::get_singleton()->window_set_title(title + String(" - ") + GODOT_VERSION_NAME);
if (project_title) {
project_title->set_text(title);
}
@@ -3220,7 +3220,7 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
command_palette->open_popup();
} break;
case HELP_DOCS: {
OS::get_singleton()->shell_open(VERSION_DOCS_URL "/");
OS::get_singleton()->shell_open(GODOT_VERSION_DOCS_URL "/");
} break;
case HELP_FORUM: {
OS::get_singleton()->shell_open("https://forum.godotengine.org/");
@@ -5066,9 +5066,9 @@ String EditorNode::_get_system_info() const {
}
const String distribution_version = OS::get_singleton()->get_version_alias();
String godot_version = "Godot v" + String(VERSION_FULL_CONFIG);
if (String(VERSION_BUILD) != "official") {
String hash = String(VERSION_HASH);
String godot_version = "Godot v" + String(GODOT_VERSION_FULL_CONFIG);
if (String(GODOT_VERSION_BUILD) != "official") {
String hash = String(GODOT_VERSION_HASH);
hash = hash.is_empty() ? String("unknown") : vformat("(%s)", hash.left(9));
godot_version += " " + hash;
}