diff options
| author | Max Hilbrunner | 2018-04-18 19:24:01 +0200 |
|---|---|---|
| committer | Your Name | 2018-05-01 22:04:08 +0200 |
| commit | 0551c5c2cd3e18f00ff71049a1eaa3abd95a1d40 (patch) | |
| tree | b9a02047a45aeaa70898f1a7d0624d8516a9b0e1 /core/io/pck_packer.cpp | |
| parent | cd9b0d7cc36645d94a76e527f21e6b1d5081d540 (diff) | |
| download | godot-0551c5c2cd3e18f00ff71049a1eaa3abd95a1d40.tar.gz godot-0551c5c2cd3e18f00ff71049a1eaa3abd95a1d40.tar.zst godot-0551c5c2cd3e18f00ff71049a1eaa3abd95a1d40.zip | |
PCKPacker:pck_start(): Update version
(cherry picked from commit a3aa5ad0d036e9824ec87bd747277c6e7779ce33)
Diffstat (limited to '')
| -rw-r--r-- | core/io/pck_packer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/io/pck_packer.cpp b/core/io/pck_packer.cpp index 596060221..b6377662d 100644 --- a/core/io/pck_packer.cpp +++ b/core/io/pck_packer.cpp @@ -29,8 +29,8 @@ /*************************************************************************/ #include "pck_packer.h" - #include "core/os/file_access.h" +#include "version.h" static uint64_t _align(uint64_t p_n, int p_alignment) { @@ -70,9 +70,9 @@ Error PCKPacker::pck_start(const String &p_file, int p_alignment) { alignment = p_alignment; file->store_32(0x43504447); // MAGIC - file->store_32(0); // # version - file->store_32(0); // # major - file->store_32(0); // # minor + file->store_32(1); // # version + file->store_32(VERSION_MAJOR); // # major + file->store_32(VERSION_MINOR); // # minor file->store_32(0); // # revision for (int i = 0; i < 16; i++) { |
