diff options
author | Yar-Mukhamedov <9489533+Yar-Mukhamedov@users.noreply.github.com> | 2018-07-16 13:05:45 +0600 |
---|---|---|
committer | Yar-Mukhamedov <9489533+Yar-Mukhamedov@users.noreply.github.com> | 2018-07-17 20:14:20 +0600 |
commit | bf37bd94b6c3604f760abea691973b4b2d09e622 (patch) | |
tree | 74b3f809c920f5ddee1755ceee5f99b445ddb45a | |
parent | e57e53debb4e13c0a5182542b0066ed5b37b2447 (diff) |
Fix export templates installation error...
-rw-r--r-- | editor/export_template_manager.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/editor/export_template_manager.cpp b/editor/export_template_manager.cpp index 541c848ca3..823e2f4617 100644 --- a/editor/export_template_manager.cpp +++ b/editor/export_template_manager.cpp @@ -228,7 +228,10 @@ void ExportTemplateManager::_install_from_file(const String &p_file, bool p_use_ version = data_str; } - fc++; + if (file.get_file().size() != 0) { + fc++; + } + ret = unzGoToNextFile(pkg); } @@ -268,6 +271,11 @@ void ExportTemplateManager::_install_from_file(const String &p_file, bool p_use_ String file = String(fname).get_file(); + if (file.size() == 0) { + ret = unzGoToNextFile(pkg); + continue; + } + Vector<uint8_t> data; data.resize(info.uncompressed_size); |