diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-09 09:46:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-09 09:46:02 +0100 |
commit | 79077e6c10db9e8e53a8134f72e326f3ffb9c51c (patch) | |
tree | f8e349d30bcd971780c19b988206e5fce85a8c63 /core/config/engine.cpp | |
parent | 5e53d9d777a4087204dc142d21b878bfab265d63 (diff) | |
parent | 90162851a79f46a0e8887e9a403b9ee4db333eb9 (diff) |
Merge pull request #57817 from akien-mga/version-hash-cpp
Diffstat (limited to 'core/config/engine.cpp')
-rw-r--r-- | core/config/engine.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/config/engine.cpp b/core/config/engine.cpp index d9abf5e5e9..ff8a8d283f 100644 --- a/core/config/engine.cpp +++ b/core/config/engine.cpp @@ -35,7 +35,6 @@ #include "core/donors.gen.h" #include "core/license.gen.h" #include "core/version.h" -#include "core/version_hash.gen.h" void Engine::set_physics_ticks_per_second(int p_ips) { ERR_FAIL_COND_MSG(p_ips <= 0, "Engine iterations per second must be greater than 0."); @@ -95,8 +94,8 @@ Dictionary Engine::get_version_info() const { dict["build"] = VERSION_BUILD; dict["year"] = VERSION_YEAR; - String hash = VERSION_HASH; - dict["hash"] = hash.length() == 0 ? String("unknown") : hash; + String hash = String(VERSION_HASH); + dict["hash"] = hash.is_empty() ? String("unknown") : hash; String stringver = String(dict["major"]) + "." + String(dict["minor"]); if ((int)dict["patch"] != 0) { |