Rename version defines to GODOT_VERSION_* to match GDExtension godot-cpp

This commit is contained in:
Aaron Franke 2025-03-03 22:27:29 -08:00
parent 74907876d3
commit 97ee05e9b7
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF
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);
}
@ -3221,7 +3221,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/");
@ -5084,9 +5084,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;
}