summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2018-04-30 17:11:10 +0200
committerGitHub <noreply@github.com>2018-04-30 17:11:10 +0200
commit1ff89b547af735e833f0703813c6c7869b68a35e (patch)
tree56e66192145f90440aeb14a8b135530d96eb1405 /core
parentea163673c7aebd6469c8952ea70d7208d1ead244 (diff)
parenta3aa5ad0d036e9824ec87bd747277c6e7779ce33 (diff)
Merge pull request #18284 from mhilbrunner/pck-version
Fix .pck exporting via PCKPacker
Diffstat (limited to 'core')
-rw-r--r--core/io/pck_packer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/io/pck_packer.cpp b/core/io/pck_packer.cpp
index 596060221e..b6377662de 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++) {