diff options
author | Spartan322 <Megacake1234@gmail.com> | 2024-10-17 20:44:00 -0400 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2024-10-17 20:44:00 -0400 |
commit | 834a843c46587d8bdd6d9e3f02fe84dfccce25cb (patch) | |
tree | 219866bdf11bd4b1eef031774a85bcfde3b55a1e /core/config/engine.cpp | |
parent | 05896a777dd6c86955afb516884f7f9d1a38ff6a (diff) | |
download | redot-engine-834a843c46587d8bdd6d9e3f02fe84dfccce25cb.tar.gz |
Bump version to 4.3-beta.1
Add status_version to version.py
Update Engine.xml example for get_godot_compatible_version_info
Diffstat (limited to 'core/config/engine.cpp')
-rw-r--r-- | core/config/engine.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/core/config/engine.cpp b/core/config/engine.cpp index 16d29915b9..af8c3729be 100644 --- a/core/config/engine.cpp +++ b/core/config/engine.cpp @@ -126,6 +126,8 @@ Dictionary Engine::get_version_info() const { dict["status"] = VERSION_STATUS; dict["build"] = VERSION_BUILD; + dict["status_version"] = dict["status"] != "stable" ? VERSION_STATUS_VERSION : 0; + String hash = String(VERSION_HASH); dict["hash"] = hash.is_empty() ? String("unknown") : hash; @@ -135,7 +137,13 @@ Dictionary Engine::get_version_info() const { if ((int)dict["patch"] != 0) { stringver += "." + String(dict["patch"]); } - stringver += "-" + String(dict["status"]) + " (" + String(dict["build"]) + ")"; + stringver += "-" + String(dict["status"]); + + if ((int)dict["status_version"] != 0) { + stringver += "." + String(dict["status_version"]); + } + + stringver += " (" + String(dict["build"]) + ")"; dict["string"] = stringver; return dict; |