aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/editor_import_export.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2014-02-15 02:01:39 -0300
committerJuan Linietsky2014-02-15 02:02:41 -0300
commit9afdb3e0ad5bfbdafe307212f5d4ebcc7c3ac852 (patch)
treed25ef63dfe50d59987b4a611c1d1773185a3e35d /tools/editor/editor_import_export.cpp
parentb0870e487c6cc68bb0a2cef7174f3f5697667a2e (diff)
downloadgodot-9afdb3e0ad5bfbdafe307212f5d4ebcc7c3ac852.tar.gz
godot-9afdb3e0ad5bfbdafe307212f5d4ebcc7c3ac852.tar.zst
godot-9afdb3e0ad5bfbdafe307212f5d4ebcc7c3ac852.zip
-fixed bug in Button now exporting font property
-made GUI Theme editor usable -editor does not allow to export or create .pck in the same path as a project -changed .pck format (lacked support for versioning so couldn't change it), previous was causing crashes and is now incompatible, just re-export. -will not look for .pck files recursively, was causing unexpected behaviors -fixed execution of Godot in paths with non unicode characters in Windows, OSX and Linux.
Diffstat (limited to 'tools/editor/editor_import_export.cpp')
-rw-r--r--tools/editor/editor_import_export.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/editor/editor_import_export.cpp b/tools/editor/editor_import_export.cpp
index acbe699b8..87d3e1769 100644
--- a/tools/editor/editor_import_export.cpp
+++ b/tools/editor/editor_import_export.cpp
@@ -848,7 +848,8 @@ Error EditorExportPlatform::save_pack(FileAccess *dst,bool p_make_bundles) {
FileAccess *tmp = FileAccess::open(tmppath,FileAccess::WRITE);
uint64_t ofs_begin = dst->get_pos();
- dst->store_32(0x4b435047); //GPCK
+ dst->store_32(0x43504447); //GDPK
+ dst->store_32(0); //pack version
dst->store_32(VERSION_MAJOR);
dst->store_32(VERSION_MINOR);
dst->store_32(VERSION_REVISION);
@@ -891,7 +892,7 @@ Error EditorExportPlatform::save_pack(FileAccess *dst,bool p_make_bundles) {
memdelete(tmp);
dst->store_64(dst->get_pos()-ofs_begin);
- dst->store_32(0x4b435047); //GPCK
+ dst->store_32(0x43504447); //GDPK
//fix offsets