fix zip export

This commit is contained in:
Juan Linietsky 2015-12-13 07:50:07 -03:00
parent 709de124c1
commit 450926693f
2 changed files with 4 additions and 2 deletions

View File

@ -1081,12 +1081,14 @@ Error EditorExportPlatform::save_pack_file(void *p_userdata,const String& p_path
Error EditorExportPlatform::save_zip_file(void *p_userdata,const String& p_path, const Vector<uint8_t>& p_data,int p_file,int p_total) {
String path=p_path.replace_first("res://","");
ZipData *zd = (ZipData*)p_userdata;
zipFile zip=(zipFile)zd->zip;
zipOpenNewFileInZip(zip,
p_path.utf8().get_data(),
path.utf8().get_data(),
NULL,
NULL,
0,

View File

@ -1407,7 +1407,7 @@ ProjectExportDialog::ProjectExportDialog(EditorNode *p_editor) {
add_child(confirm);
confirm->connect("confirmed",this,"_confirmed");
get_ok()->set_text("Export PCK");
get_ok()->set_text("Export PCK/Zip");
expopt="--,Export,Bundle";