mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Rename the version's "revision" to "build"
That "revision" was inherited from SVN days but had been since then used to give information about the build: "custom_build", "official", "<some distro's build>". It can now be overridden with the BUILD_NAME environment variable.
This commit is contained in:
parent
6947bed015
commit
3fd23da5ee
5 changed files with 12 additions and 12 deletions
|
|
@ -85,7 +85,7 @@ Dictionary Engine::get_version_info() const {
|
|||
dict["patch"] = 0;
|
||||
#endif
|
||||
dict["status"] = VERSION_STATUS;
|
||||
dict["revision"] = VERSION_REVISION;
|
||||
dict["build"] = VERSION_BUILD;
|
||||
dict["year"] = VERSION_YEAR;
|
||||
|
||||
String hash = VERSION_HASH;
|
||||
|
|
@ -94,7 +94,7 @@ Dictionary Engine::get_version_info() const {
|
|||
String stringver = String(dict["major"]) + "." + String(dict["minor"]);
|
||||
if ((int)dict["patch"] != 0)
|
||||
stringver += "." + String(dict["patch"]);
|
||||
stringver += "-" + String(dict["status"]) + " (" + String(dict["revision"]) + ")";
|
||||
stringver += "-" + String(dict["status"]) + " (" + String(dict["build"]) + ")";
|
||||
dict["string"] = stringver;
|
||||
|
||||
return dict;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue