mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 06:31:13 +00:00
Rename version defines to GODOT_VERSION_* to match GDExtension godot-cpp
This commit is contained in:
parent
74907876d3
commit
97ee05e9b7
53 changed files with 220 additions and 197 deletions
|
|
@ -125,17 +125,17 @@ double Engine::get_unfrozen_time_scale() const {
|
|||
|
||||
Dictionary Engine::get_version_info() const {
|
||||
Dictionary dict;
|
||||
dict["major"] = VERSION_MAJOR;
|
||||
dict["minor"] = VERSION_MINOR;
|
||||
dict["patch"] = VERSION_PATCH;
|
||||
dict["hex"] = VERSION_HEX;
|
||||
dict["status"] = VERSION_STATUS;
|
||||
dict["build"] = VERSION_BUILD;
|
||||
dict["major"] = GODOT_VERSION_MAJOR;
|
||||
dict["minor"] = GODOT_VERSION_MINOR;
|
||||
dict["patch"] = GODOT_VERSION_PATCH;
|
||||
dict["hex"] = GODOT_VERSION_HEX;
|
||||
dict["status"] = GODOT_VERSION_STATUS;
|
||||
dict["build"] = GODOT_VERSION_BUILD;
|
||||
|
||||
String hash = String(VERSION_HASH);
|
||||
String hash = String(GODOT_VERSION_HASH);
|
||||
dict["hash"] = hash.is_empty() ? String("unknown") : hash;
|
||||
|
||||
dict["timestamp"] = VERSION_TIMESTAMP;
|
||||
dict["timestamp"] = GODOT_VERSION_TIMESTAMP;
|
||||
|
||||
String stringver = String(dict["major"]) + "." + String(dict["minor"]);
|
||||
if ((int)dict["patch"] != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue