mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
PCK: Set VERSION_PATCH in header, factor out header magic
Unify pack file version and magic to avoid hardcoded literals. `version.py` now always includes `patch` even for the first release in a new stable branch (e.g. 3.2). The public name stays without the patch number, but `Engine.get_version_info()` already included `patch == 0`, and we can remove some extra handling of undefined `VERSION_PATCH` this way. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
parent
8454804972
commit
dc61323b2c
10 changed files with 38 additions and 39 deletions
|
@ -94,11 +94,7 @@ Dictionary Engine::get_version_info() const {
|
|||
Dictionary dict;
|
||||
dict["major"] = VERSION_MAJOR;
|
||||
dict["minor"] = VERSION_MINOR;
|
||||
#ifdef VERSION_PATCH
|
||||
dict["patch"] = VERSION_PATCH;
|
||||
#else
|
||||
dict["patch"] = 0;
|
||||
#endif
|
||||
dict["hex"] = VERSION_HEX;
|
||||
dict["status"] = VERSION_STATUS;
|
||||
dict["build"] = VERSION_BUILD;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue