Browse Source

PCKPacker:pck_start(): Update version

Max Hilbrunner 7 years ago
parent
commit
a3aa5ad0d0
1 changed files with 4 additions and 4 deletions
  1. 4 4
      core/io/pck_packer.cpp

+ 4 - 4
core/io/pck_packer.cpp

@@ -29,8 +29,8 @@
 /*************************************************************************/
 /*************************************************************************/
 
 
 #include "pck_packer.h"
 #include "pck_packer.h"
-
 #include "core/os/file_access.h"
 #include "core/os/file_access.h"
+#include "version.h"
 
 
 static uint64_t _align(uint64_t p_n, int p_alignment) {
 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;
 	alignment = p_alignment;
 
 
 	file->store_32(0x43504447); // MAGIC
 	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
 	file->store_32(0); // # revision
 
 
 	for (int i = 0; i < 16; i++) {
 	for (int i = 0; i < 16; i++) {