mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 16:33:30 +00:00
Pass engine name and version parts as proper strings
Removes the need for _MKSTR all over the place which has the drawback of converting _MKSTR(UNKNOWN_DEFINE) to "UKNOWN_DEFINE" instead of throwing a compilation error.
This commit is contained in:
parent
ecf80fbbba
commit
6947bed015
15 changed files with 28 additions and 31 deletions
|
@ -84,11 +84,11 @@ Dictionary Engine::get_version_info() const {
|
|||
#else
|
||||
dict["patch"] = 0;
|
||||
#endif
|
||||
dict["status"] = _MKSTR(VERSION_STATUS);
|
||||
dict["revision"] = _MKSTR(VERSION_REVISION);
|
||||
dict["status"] = VERSION_STATUS;
|
||||
dict["revision"] = VERSION_REVISION;
|
||||
dict["year"] = VERSION_YEAR;
|
||||
|
||||
String hash = String(VERSION_HASH);
|
||||
String hash = VERSION_HASH;
|
||||
dict["hash"] = hash.length() == 0 ? String("unknown") : hash;
|
||||
|
||||
String stringver = String(dict["major"]) + "." + String(dict["minor"]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue