Skip to content

Commit

Permalink
Merge pull request #228 from sshiiden/version-info
Browse files Browse the repository at this point in the history
Consistent version.h
  • Loading branch information
jss2a98aj authored Jan 12, 2025
2 parents 465fbbb + 6a5ab3d commit c337c02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions core/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@
// Similar to EXTERNAL_VERSION_FULL_CONFIG, but also includes the VERSION_FULL_BUILD
// description.
// Example: "0.1.0.stable.mono (3.1.4.stable.mono.official)"
#define EXTERNAL_VERSION_FULL_BUILD EXTERNAL_VERSION_NUMBER "(" VERSION_FULL_BUILD ")"
#define EXTERNAL_VERSION_FULL_BUILD EXTERNAL_VERSION_FULL_CONFIG " (" VERSION_FULL_BUILD ")"

// Same as above, but prepended with Godot's name and a cosmetic "v" for "version".
// Example: "Blazium v0.1.0.nightly.mono (base v3.1.4.stable.mono.official)"
#define VERSION_FULL_NAME VERSION_NAME " v" EXTERNAL_VERSION_NUMBER " (base v" VERSION_FULL_BUILD ")"
// Example: "Blazium Engine v0.1.0.nightly.mono (3.1.4.stable.mono.official)"
#define VERSION_FULL_NAME VERSION_NAME " v" EXTERNAL_VERSION_FULL_BUILD

// Git commit hash, generated at build time in `core/version_hash.gen.cpp`.
extern const char *const VERSION_HASH;
Expand Down
2 changes: 1 addition & 1 deletion editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5015,7 +5015,7 @@ String EditorNode::_get_system_info() const {
}
const String distribution_version = OS::get_singleton()->get_version();

String godot_version = "Blazium v" + String(VERSION_FULL_CONFIG);
String godot_version = String(VERSION_FULL_NAME);
if (String(VERSION_BUILD) != "official") {
String hash = String(VERSION_HASH);
hash = hash.is_empty() ? String("unknown") : vformat("(%s)", hash.left(9));
Expand Down

0 comments on commit c337c02

Please sign in to comment.