mirror of
https://github.com/godotengine/godot.git
synced 2025-01-12 21:11:49 +00:00
fix zip export
This commit is contained in:
parent
709de124c1
commit
450926693f
@ -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,
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user